| ILOG JRules User Guide > Testing Rules with Rule Scenario Manager > Tasks > Deploying the XOM to the Scenario Service Provider > Using the ssp-setup Ant Task |
Using the ssp-setup Ant Task |
PREVIOUS NEXT |
If you want to automate deployment on the SSP, you can add the ssp-setup Ant task to your build or deployment process.
The Ant task produces results both:
verbose attribute is set to true
The following code shows a sample Ant script to illustrate how to use the ssp-update Ant task. This Ant file uses the jrules-bres-setup.jar file, which contains the implementation for the Ant task and the Rule Execution Server Ant Tasks description.
<project name="ssp-update-sample" default="update-ssp-target">
<!--
This is a task definition for Ant. It allows Ant 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="C:/ILOG/JRules67/executionserver/lib/jrules-bres-setup.jar"/>
<!--
Update the file specified in the sspInput attribute. Concise information will
be displayed on the console. The resulting file is generated in the file
specified in the sspOutput attribute.
-->
<target name="update-ssp-target" description="Update with the specified XOM
and configuration">
<ssp-setup
sspInput="C:/ILOG/JRules67/scenariomanager/applicationservers/jboss40
/jrules-rsm-JBOSS40.war"
sspOutput="my-rsm-JBOSS40.war"
verbose="false">
<xom>
<fileset dir="data">
<include name="myXOM.jar"/>
</fileset>
</xom>
<configuration log4jFile="data/log4j.properties"
handler="execution.trace.Handler"/>
<j2seExecution
persistenceMode="file"
persistenceProperties="ilog.rules.bres.xu.ruleset.fs.IlrFileRulesetInformationProvider.repositoryDirPath=c:/res-data-v67"
traceLevel="FINE"
traceAutoflush="true"
plugins="{pluginClass=ilog.rules.bres.ras.plugin.IlrExecutionTracePlugin},{pluginClass=ilog.rules.res.decisionservice.plugin.IlrWsdlGeneratorPlugin}"/>
</ssp-setup>
</target>
</project>
To use the ssp-setup Ant task:
<taskdef> Ant element in your Ant file: <taskdef resource="res-tasks.properties" classpath="${jrules67installdir}\executionserver\lib\jrules-bres-setup.jar"/>
<ssp-setup> element to tell Ant to update an SSP artifact to your specific configuration and XOM.
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |