You use the Samples Console to set up this sample.
About this task
This sample extends the Rule
Designer
API. The required sample plug-ins are delivered as predeployed.
Procedure
To import the rulesetextraction sample:
- Switch to the Samples Console perspective.
- In the Samples and Tutorials tab, navigate to , and click Import projects. If one or more files already exist in your workspace, Rule
Designer displays a warning message.
Rule
Explorer displays the imported sample project files:
- rulesetextraction_rules: The sample rule project.
- rulesetextraction_xom: A Java™ project
that contains the execution model of rulesetextraction_rules.
- rulesetextraction_application: A Java
project that contains the code to demonstrate how to run a ruleset archive.
This project also includes an Ant build file (build.xml). The file
contains Ant tasks that demonstrate different extraction scenarios.
Note: Before Eclipse
extracts the ruleset archive, it uses the target init.runtime in the
build.xml to set the runtime properties: os (operating
system), ws (window system), and arch (architecture). This
operation works for most common configurations. If it does not match your runtime environment, you
can modify the Ant target to force the values of these properties.