res-delete-xom-file
The res-delete-xom-file task removes XOM, JAR, ZIP, or Java™ resources, or a library, from the file persistence of Rule Execution Server. This task does not notify any other Rule Execution Server component or execution unit (XU) instance.
res-delete-xom-file element attributes
The following table describes the element attributes of the res-delete-xom-file Ant task and specifies whether they are mandatory or optional.
| Element attribute | Description | Mandatory/optional |
|---|---|---|
| dir | The path to the root directory of the file persistence. | Mandatory |
| 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. |
| jarName | The server uses this name to remove the XOM, JAR, ZIP, or Java resources. Priority order
if you set more than one configuration:
|
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:
|
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. |
| uri | URI of the element to be removed Priority order if
you set more than one configuration:
|
Mandatory: at least one of the three configurations, uri, jar, or lib, is required. |
Example
The following code
sample shows how to delete a Java XOM
resource directly from a file persistence directory:
<res-delete-xom-file dir="c:/res-xom-dir"
jarName="loanValidation.jar" jarVersion="1.0" />