Method Summary |
|
public void | add(Path path) |
public void | add(ResourceCollection c) Add a nested ResourceCollection . |
public void | addDirset(DirSet dset) Adds a nested <dirset> element. |
public void | addExisting(Path source) Adds the components on the given path which exist to this
Path. |
public void | addExisting(Path source, boolean tryUserDir) Same as addExisting, but support classpath behavior if tryUserDir
is true. |
public void | addExtdirs(Path extdirs) Emulation of extdirs feature in java >= 1.2. |
public void | addFilelist(FileList fl) Adds a nested <filelist> element. |
public void | addFileset(FileSet fs) Adds a nested <fileset> element. |
public void | addJavaRuntime() Add the Java Runtime classes to this Path instance. |
public void | append(Path other) Append the contents of the other Path instance to this. |
protected ResourceCollection | assertFilesystemOnly(ResourceCollection rc) Verify the specified ResourceCollection is filesystem-only.
Parameters: rc - the ResourceCollection to check. throws: BuildException - if rc is not filesystem-only. |
public Object | clone() Clone this Path. |
public Path | concatSystemBootClasspath(String defValue) Concatenates the system boot class path in the order specified
by the ${build.sysclasspath} property - using the supplied
value if ${build.sysclasspath} has not been set. |
public Path | concatSystemClasspath() Concatenates the system class path in the order specified by
the ${build.sysclasspath} property - using "last" as
default value. |
public Path | concatSystemClasspath(String defValue) Concatenates the system class path in the order specified by
the ${build.sysclasspath} property - using the supplied value
if ${build.sysclasspath} has not been set. |
public Path | createPath() Creates a nested <path> element. |
public PathElement | createPathElement() Creates the nested <pathelement> element. |
protected synchronized void | dieOnCircularReference(Stack stk, Project p) Overrides the version of DataType to recurse on all DataType
child elements that may have been added. |
public synchronized boolean | isFilesystemOnly() Fulfill the ResourceCollection contract. |
final public synchronized Iterator | iterator() Fulfill the ResourceCollection contract. |
public String[] | list() Returns all path elements defined by this and nested path objects. |
public void | setLocation(File location) Adds a element definition to the path. |
public void | setPath(String path) Parses a path definition and creates single PathElements. |
public void | setRefid(Reference r) Makes this instance in effect a reference to another Path instance. |
public synchronized int | size() Fulfill the ResourceCollection contract. |
public String | toString() Returns a textual representation of the path, which can be used as
CLASSPATH or PATH environment variable definition. |
public static String | translateFile(String source) Returns its argument with all file separator characters
replaced so that they match the local OS conventions. |
protected static boolean | translateFileSep(StringBuffer buffer, int pos) Translates occurrences at a position of / or \ to correct separator of the
current platform and returns whether it had to do a
replacement. |
public static String[] | translatePath(Project project, String source) Splits a PATH (with : or ; as separators) into its parts. |