res-undeploy-xom

The res-undeploy-xom Ant task removes XOM, JAR, ZIP, or Java™ resources from a running Rule Execution Server instance.

This task removes the resource or library from the internal persistence layer by using remote calls through Hypertext Transfer Protocol (HTTP) or HTTP Over SSL (HTTPS).

res-undeploy-xom element attributes

The following table describes the element attributes of the res-undeploy-xom Ant task and specifies whether they are mandatory or optional.

Table 1. res-undeploy-xom element attributes
Element attribute Description Mandatory/optional
credentialsfile A file that contains the userid and password values, encrypted the first time the attribute is used. If you set this attribute, do not use the userid and password attributes.

A credentials file is a text file that sets two properties: username and password.

Optional
failonerror If you set this attribute to false, a warning message is logged when an error occurs, but the build process is not stopped.

Optional

The default value is to true.

hostname The host name of the server where the Rule Execution Server console is installed. Mandatory
jarName

The server uses this name to remove the XOM, JAR, ZIP, or Java resources.

Priority order if you set more than one configuration:
  • uri
  • jar
  • lib
Mandatory: at least one of the three configurations, uri, jar, or lib, is required.
jarVersion The server uses this version number to remove the XOM, JAR, ZIP, or Java resources.

Mandatory

The default value is 1.0.

libName

The server uses this name to remove the library.

Priority order if you set more than one configuration:
  • uri
  • jar
  • lib
Mandatory: at least one of the three configurations, uri, jar, or lib, is required.
libVersion The server uses this version number to remove the library.

Mandatory

The default value is 1.0.

password The password of the user who is allowed to log in to the Rule Execution Server console. If you set this attribute, do not use the credentialsfile attribute. Optional
portnumber The port number of the Rule Execution Server console. Mandatory
secured If you set this attribute to true, the task works through an HTTPS connection.

Optional

The default value is to false.

uri

URI of the element to be removed

Priority order if you set more than one configuration:
  • uri
  • jar
  • lib
Mandatory: at least one of the three configurations, uri, jar, or lib, is required.
userid The user name to log in to the Rule Execution Server console. If you set this attribute, do not use the credentialsfile attribute. The user must be assigned the resDeployer role or above. Optional
webapp The context root of the Rule Execution Server console

Optional

The default value is res.

Example

The following code sample shows how to remove a library from the Rule Execution Server:
<res-undeploy-xom hostname="localhost" 
                  portnumber="9080" 
                  webapp="res" 
                  userid="resAdmin" 
                  password="resAdmin" 
                  libName="libName" 
                  libVersion="1.0" />