Browse Source

allow path components to be directly added to AntClassLoader

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@490081 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 18 years ago
parent
commit
221b05d059
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      src/main/org/apache/tools/ant/AntClassLoader.java

+ 14
- 0
src/main/org/apache/tools/ant/AntClassLoader.java View File

@@ -460,6 +460,20 @@ public class AntClassLoader extends ClassLoader implements SubBuildListener {
}
}

/**
* Add a path component.
* This simply adds the file, unlike addPathElement
* it does not open jar files and load files from
* their CLASSPATH entry in the manifest file.
* @param file the jar file or directory to add.
*/
public void addPathComponent(File file) {
if (pathComponents.contains(file)) {
return;
}
pathComponents.addElement(file);
}

/**
* Add a file to the path.
* Reads the manifest, if available, and adds any additional class path jars


Loading…
Cancel
Save