| ILOG JRules User Guide > Deploying Rules > Reference > RuleApp Management Using Ant > res-jar Task |
res-jar Task |
PREVIOUS NEXT |
The res-jar task creates a well-formed RuleApp archive with all its mandatory execution resources. The deployment descriptor uses a set of subelements to identify the different resources of each ruleset in the archive.
The following table describes the res-jar element attributes.
The following Ant project file provides an example of how to use the res-jar ruleset subelement:
<res-jar destfile="myruleapp.jar" name="myruleapp" version="1.0"> <ruleset rulesetarchive="rulesetarchive.jar" name="myruleset" version="1.0" /> </res-jar>
The ruleset subelement defines each ruleset for the RuleApp archive. It supports a set of subelements to build the XOM file for each ruleset:
The property subelement is a subelement of the res-jar tag. The ruleset element declares the properties for a ruleset. The task generates a Java properties file that the rule engine uses at runtime.
Element Attribute |
Description |
Required |
|---|---|---|
name |
The name of the property. |
Yes |
value |
The value of the property. |
Yes |
The following tags are deprecated and are supported only if the irlfile attribute is used and generatexmlsignature is set to true on the ruleset tag:
The xomschema subelement constructs a ruleset XOM by processing an XML schema (.xsd) file. This subelement is deprecated and should not be used when a ruleset archive is used on the <ruleset> tag.
The xomwsdl subelement constructs a ruleset XOM by processing the WSDL descriptor of a Web service URL. This subelement is deprecated and should not be used when a ruleset archive is used on the <ruleset> tag.
Element Attribute |
Description |
Required |
|---|---|---|
url |
The URL of the WSDL descriptor. |
Deprecated |
The xomfile subelement constructs a ruleset XOM by adding the content of a XOM file (.xom). This subelement is deprecated and should not be used when a ruleset archive is used on the <ruleset> tag.
Element Attribute |
Description |
Required |
|---|---|---|
sourcefile |
The source file of the XOM ( .xom). |
Deprecated |
The classpath subelement declares the class path required to generate the XML ruleset signature. The class path must include the XOM, which the rule engine uses to generate the signature. This subelement is deprecated and should not be used when a ruleset archive is used on the <ruleset> tag.
For more information on the classpath subelement, see the Ant documentation, in particular path-like values.
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |