10 July 2007

Doc bug in RemoveSharedLibrary ant task

There's a known documentation bug for the <oracle:removeSharedLibrary ... > task.

The documentation describes the attribute name for the version of the library to use as "version". Whereas, in reality, the attribute name should be "libraryVersion" as its defined on the ant task.

You can view the various attributes/properties of an ant task by running javap on the class and looking for the accessors.
>javap -public -classpath j2ee\utilities\ant-oracle-classes.jar
oracle.ant.taskdefs.deploy.JSR88RemoveSharedLibrary

Compiled from "JSR88RemoveSharedLibrary.java"
public class oracle.ant.taskdefs.deploy.JSR88RemoveSharedLibrary
extends oracle.ant.taskdefs.deploy.JSR88BaseTask {
public oracle.ant.taskdefs.deploy.JSR88RemoveSharedLibrary();
public void execute() throws org.apache.tools.ant.BuildException;
public void setLibraryName(java.lang.String);
public java.lang.String getLibraryName();
public void setLibraryVersion(java.lang.String);
public java.lang.String getLibraryVersion();
}
The correct use of the task would be:
<oracle:removeSharedLibrary
deployerUri="deployer:oc4j:opmn://localhost/home"
userid="oc4jadmin"
password="welcome1"
libraryName="apache.xml"
libraryVersion="2.7"/>

No comments: