This object represents a path as used by CLASSPATH or PATH environment variable. A path might also be described as a collection of unique filesystem resources.
<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.