| ILOG JRules User Guide > Deploying Rules > Reference > RuleApp Management Using Ant > res-delete-db Task |
res-delete-db Task |
PREVIOUS NEXT |
The res-delete-db task removes a RuleApp archive from the database persistence of Rule Execution Server. This task does not notify any other Rule Execution Server component.
The following Ant task code provides an example of how to use the element attributes:
<res-delete-db driver="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:oci:@//localhost:1521/default"
userid="bres" password="mypassword"
ruleapp="myruleapp" version="1.0">
<classpath>
<pathelement location="classes12.jar"/>
</classpath>
</res-write-db>
For an encrypted example, using the credentialsfile attribute, you replace the following attributes: userid="bres" password="mypassword" with the attribute: credentialsfile="mypasswordfile"
where the credentials file is a text file that contains:
username=bres password=mypassword |
The file must follow the Java property files format. For more information see http://java.sun.com/j2se/1.4.2/docs/api/java/util/Properties.html#load(java.io.InputStream). After the first execution of the res-deploy ANT task, the contents are encrypted. For example:
username={DES}oLHZROlruWw\= password={DES}als58ekruWw\= |
With encryption, the userid and password never appear in plain text in traces during the RuleApp deployment operation.
This classpath should contain the JDBC driver classes. Wherever path-like values need to be specified, you can use a nested element. This takes the general form of:
<classpath>
<pathelement path="${classpath}"/>
<pathelement location="lib/"/>
</classpath>
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |