Attribute | Description | Type | Required? |
classpath | Set the classpath to be used when searching for classes and resources. | Path | ? |
file | Set the file which must be present in the file system to set the given property. | File | ? |
classname | Set a classname of a class which must be available to set the given property. | String | ? |
resource | Set the name of a Java resource which is required to set the property. | String | ? |
ignoresystemclasses | Set whether the search for classes should ignore the runtime classes and just use the given classpath. | boolean | ? |
type | Set what type of file is required - either directory or file. | String ["file", "dir"] | ? |
classpathref | Set the classpath by reference. | Reference | ? |
value | Set the value to be given to the property if the desired resource is available. | String | ? |
property | Set the name of the property which will be set if the particular resource is available. | String | ? |
filepath | Set the path to use when looking for a file. | Path | ? |
<sometask>
<somepath>
<pathelement location="/path/to/file.jar" />
<pathelement path="/path/to/file2.jar:/path/to/class2;/path/to/class3" />
<pathelement location="/path/to/file3.jar" />
<pathelement location="/path/to/file4.jar" />
</somepath>
</sometask>
The object implemention sometask
must provide a method called
createSomepath
which returns an instance of Path
.
Nested path definitions are handled by the Path object and must be labeled
pathelement
.
The path element takes a parameter path
which will be parsed
and split into single elements. It will usually be used
to define a path from an environment variable.
Attribute | Description | Type | Required |
refid |
Makes this instance in effect a reference to another Path instance.
You must not set another attribute or nest elements inside this element if you make it a reference. |
Reference | ? |
path | Parses a path definition and creates single PathElements. | String | ? |
<sometask>
<somepath>
<pathelement location="/path/to/file.jar" />
<pathelement path="/path/to/file2.jar:/path/to/class2;/path/to/class3" />
<pathelement location="/path/to/file3.jar" />
<pathelement location="/path/to/file4.jar" />
</somepath>
</sometask>
The object implemention sometask
must provide a method called
createSomepath
which returns an instance of Path
.
Nested path definitions are handled by the Path object and must be labeled
pathelement
.
The path element takes a parameter path
which will be parsed
and split into single elements. It will usually be used
to define a path from an environment variable.
Attribute | Description | Type | Required |
refid |
Makes this instance in effect a reference to another Path instance.
You must not set another attribute or nest elements inside this element if you make it a reference. |
Reference | ? |
path | Parses a path definition and creates single PathElements. | String | ? |