Method Summary |
|
public void | addExisting(Path source) Adds the components on the given path which exist to this
Path. |
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. |
public Object | clone() Return a Path that holds the same elements as this instance. |
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 void | dieOnCircularReference(Stack stk, Project p) Overrides the version of DataType to recurse on all DataType
child elements that may have been added. |
public String[] | list() Returns all path elements defined by this and nested path objects. |
protected void | log(String message) Logs a message through the project object if one has been provided. |
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 int | size() How many parts does this Path instance consist of. |
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 all occurrences of / or \ to correct separator of the
current platform and returns whether it had to do any
replacements. |
public static String[] | translatePath(Project project, String source) Splits a PATH (with : or ; as separators) into its parts. |