Running the build automation tool from Rule Designer

You can run the build automation tool in Rule Designer.

About this task

Before setting up an automated build in headless mode, you can test in Rule Designer the command line arguments and the projects to build. All arguments are optional, but you must at least specify the name of the rule projects to build.

The following example shows how to use the build automation tool in Rule Designer:

  • Import two projects into the workspace: the Java™ project rulesetextraction_xom and the rule project rulesetextraction_rules.

  • Clean and build the rulesetextraction_rules project by using the build options BUILD_CHECK_IRL and BUILD_INCLUDES_RULE_VALIDATION. For details on build options, see IlrBuildOption.

  • Generate a ruleset archive.

Procedure

To run the build automation tool from Rule Designer:

  1. Click Run > Run Configurations.
  2. To create a new Eclipse launch configuration, double-click Eclipse Application on the side pane.
  3. In the Name field, enter a name for the configuration.
  4. In the Program to run section, select the Run an application option, and select the application ilog.rules.studio.automation.builder from the list.
  5. Click the Arguments tab.
  6. In the Program arguments section, enter the following arguments:
    -os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} 
    -importPath "${workspace_loc}/rulesetextraction_xom;${workspace_loc}/rulesetextraction_rules" 
    -cleanBuild -buildOptions BUILD_CHECK_IRL|BUILD_INCLUDES_RULE_VALIDATION rulesetextraction_rules
    The separator might vary depending on your operating system. Use a compatible separator.
  7. Click Apply and then Run.

    The Console view shows that Rule Designer generated a ruleset archive in an output directory.

  8. Switch to the Resource perspective (Window > Open Perspective > Other > Resource).
  9. Right-click the rule project and then click Refresh.
  10. To view the rulesetextraction_rules archive, expand rulesetextraction_rules > output.