Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Tigerstripe Headless Generation Tutorial"

(Running a generation from the command line)
(Running a generation from the command line)
Line 24: Line 24:
 
Now that the Tigerstripe workbench is set up and the Tigerstripe generators have been installed and tested you can invoke a generation run from the command line. The Eclipse mechanism for running in a headless environment will be used to accomplish this.
 
Now that the Tigerstripe workbench is set up and the Tigerstripe generators have been installed and tested you can invoke a generation run from the command line. The Eclipse mechanism for running in a headless environment will be used to accomplish this.
  
The following command may be executed to invoke a headless generation:
+
The following command/syntax invokes a headless generation:
  
 
<code>eclipsec -nosplash -data <workspace> -application org.eclipse.tigerstripe.workbench.headless.tigerstripe <referenced projects> <generation project></code>
 
<code>eclipsec -nosplash -data <workspace> -application org.eclipse.tigerstripe.workbench.headless.tigerstripe <referenced projects> <generation project></code>
  
* <workspace> - The path of the workspace that contains the required projects
+
* '''<workspace>''' - The path of the workspace that contains the required projects
* <generation project> - The project that will be generated.  
+
* '''<generation project>''' - The project that will be generated.  
 
** Defined as key/value pair: GENERATION_PROJECT=<PROJECT_PATH>
 
** Defined as key/value pair: GENERATION_PROJECT=<PROJECT_PATH>
* <referenced projects> - The referenced projects required for generation
+
* '''<referenced projects>''' - The referenced projects required for generation
 
** Defined as key/value pair: PROJECT_IMPORT=<PROJECT_PATH>
 
** Defined as key/value pair: PROJECT_IMPORT=<PROJECT_PATH>
  

Revision as of 17:59, 12 June 2008

< To: Tigerstripe_Tutorials

NOTE THIS IS A DRAFT PAGE

This tutorial will show you how to configure Tigerstripe to run code generations in a headless environment. This will allow you to incorporate Tigerstripe's code generation functionality into a build chain using many of the commonly available build tools, specifically Maven 2.

Tigerstripe Installation

See the Tigerstripe Installation Tutorial page for instructions on installing the Tigerstripe Workbench.

Importing an Example Model

  1. Download the sample Tigerstripe model project OrderManagement.zip.
  2. Start Eclipse and then open the Tigerstripe Workbench perspective.
  3. Import the sample project, OrderManagement.zip into the Tigerstripe Workbench.
    • Right click in the Tigerstripe Explorer pane and select "Import"
      Import.gif
    • Select General -> Existing Projects into Workspace. Click "Next >"
      Import2.gif
    • Click "Select Archive File" and browse to the location of the sample model project .zip file. Click "Finish"
      Import3.gif
  4. Verify that the project is in your Tigerstripe Explorer pane.
    Import4.gif

Installing Tigerstripe generators

Running a generation from the command line

Now that the Tigerstripe workbench is set up and the Tigerstripe generators have been installed and tested you can invoke a generation run from the command line. The Eclipse mechanism for running in a headless environment will be used to accomplish this.

The following command/syntax invokes a headless generation:

eclipsec -nosplash -data <workspace> -application org.eclipse.tigerstripe.workbench.headless.tigerstripe <referenced projects> <generation project>

  • <workspace> - The path of the workspace that contains the required projects
  • <generation project> - The project that will be generated.
    • Defined as key/value pair: GENERATION_PROJECT=<PROJECT_PATH>
  • <referenced projects> - The referenced projects required for generation
    • Defined as key/value pair: PROJECT_IMPORT=<PROJECT_PATH>

See tigerstripe.bat for an example of Windows based generation.

Running a generation from a Maven2 build

Back to the top