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:
- Click .
- To create a new Eclipse launch configuration, double-click Eclipse
Application on the side pane.
- In the Name field, enter a name
for the configuration.
- In the Program to run section, select
the Run an application option, and select the
application ilog.rules.studio.automation.builder from
the list.
- Click the Arguments tab.
- 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.
- Click Apply and then Run.
The Console view shows that Rule
Designer generated
a ruleset archive in an output directory.
- Switch to the Resource perspective
().
- Right-click the rule project and then click Refresh.
- To view the rulesetextraction_rules archive,
expand rulesetextraction_rules > output.