(Deprecated) ssp-setup
The ssp-setup Ant task provides a way to configure and repackage the Scenario Service Provider (SSP) to work with your rule projects.
Decision Validation
Services is deprecated in V8.8.0. This feature will be removed in
a future release of the product. See Deprecated features for migration
details.
To automate the repackaging of the Scenario Service Provider (SSP), you can add the ssp-setup Ant task to your build or deployment process. This Ant task updates and repackages the SSP .ear file.
- Adds the required Java™ XOM to the archive.
- Packages the SSP archive.
ssp-setup element attributes
The following table describes the attributes of the Ant task elements and specifies whether they are mandatory or optional.
| Element attribute | Description | Mandatory/optional |
|---|---|---|
| sspInput | The path to the input SSP file. | Mandatory |
| sspOutput | The path to the output SSP file. | Mandatory |
ssp-setup nested element attributes
The following table describes the attributes of the nested elements for ssp-setup and specifies whether they are mandatory or optional.
The xomLib and xomClasses elements both support the fileset nested element. See FileSet.
| Element attribute | Description | Mandatory/optional |
|---|---|---|
| xomLib | Use this nested element if you want to add .jar files. These files are added to the WEB-INF/lib directory of the SSP archive. | Optional |
| xomClasses | Use this nested element if you want to add .class files. These files are added to the WEB-INF/classes directory of the SSP archive. | Optional |
Example
< project name="ssp-update-sample" default="update-ssp-target">
<!--
This is a task definition for Ant. Ant uses it to map all Rule Execution Server
task element names (and then 'ssp-update', too) to the specific Rule Execution Server
task classes that it loads from the JAR file.
-->
<taskdef resource="res-tasks.properties"
classpath="<InstallDir>/executionserver/lib/jrules-res-setup.jar"/>
<!--
Update the file specified by the sspInput attribute. Concise information will
be displayed in the console. The resulting file is generated in the file
specified by the sspOutput attribute.
-->
<target name="update-ssp-target" description="Update with the specified XOM
and configuration">
<ssp-setup
sspInput="<InstallDir>/executionserver/applicationservers/<APPSERVER>
/jrules-ssp-vendor.ear"
sspOutput="my-ssp-My.ear"
verbose="false">
<!-- use this nested element (xomLib) if you want to add your files in the WEB-INF/lib directory of the .war file -->
<xomLib>
<fileset dir="data">
<include name="myXOM.jar"/>
</fileset>
</xomLib>
<!-- use this nested element (xomClasses) if you want to add your files in the WEB-INF/classes directory of the .war file -->
<xomClasses>
<fileset dir="data/classes" />
</xomClasses>
</ssp-setup>
</target>
</project>
- jrules-ssp-vendor.ear
The name of the application server EAR file.
- my-ssp-My.ear
The name of the repackaged application server EAR file.
- InstallDir
The installation directory for the Decision Manager package group.
- APPSERVER
The name of the application server and its version.