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

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:

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:

  1. Define the Ant task in your build file using one of the following. The task can be defined at the top level or within a specific target:
  2. - The <taskdef> Ant element in your Ant file: <taskdef resource="res-tasks.properties" classpath="${jrules67installdir}\executionserver\lib\jrules-bres-setup.jar"/>
    - Or, if the JAR file is available in your system: <taskdef resource="res-tasks.properties"/>
  3. Use the <ssp-setup> element to tell Ant to update an SSP artifact to your specific configuration and XOM.
  4. Run the Ant task from either:
  5. - the command line: execute Ant in the required directory, followed by the name of the build file.
    - within Eclipse: right-click the Ant file and click Run.

Related Concepts

Scenario Service Provider

Related Task

Deploying a XOM JAR File
Deploying the Class Files Directly

Related Samples

How to Test Rules in Rule Scenario Manager Using Java Binding
How to Test Rules in Rule Scenario Manager using XML Binding