Java application with rules launch configuration

You use this launch configuration to define a Java application with rules.

To define the launch configuration:

  1. Open a Java perspective in Eclipse and select a package in the Package Explorer.

  2. Select Run > Run Configurations to open the Run Configurations dialog.

  3. Select Java Application with Rules and click the New button.

  4. Specify a Name for the launch configuration and define the configuration as indicated in the following tables.

Main page

Use the sections in the Main page as shown in the following table:

Table 1. Main page
Section/Button Description
Project Select a project to constrain the search for main types. Click Browse to open the Project Selection dialog.
Main class Select a main class type to launch.
Include external jars when searching for a main class Select this option to include the external jars when browsing to select the main class.
Stop in main Select this option to stop execution in the main method whenever the application is launched in debug mode.
Stop at first rule statement Select this option to stop at the first rule statement when debugging.

Before Launching page

Use the sections in the Before Launching page as shown in the following table:

Table 2. Before Launching page
Section/Button Description
Perform extraction Click to perform an extraction on a rule project before launching the java application.
Use all rules contained in project Select this option to use all rules contained in a given rule project. You need to set the project in the Project field.
Use an extractor to filter rules contained in project

Select this option to apply a given extractor before launching the java application. You need to set the extractor name in the Extractor name field.

Browse to select an extractor from the extractors defined on the workspace.

Generated archive location Specify the location of the archive to be generated.