1
0

Provide facility to add URLs to the classpath.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@369711 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Simon Kitching
2006-01-17 07:53:44 +00:00
parent dac6d6bee6
commit 5f4f76c19c

View File

@@ -77,6 +77,16 @@ public class PathableClassLoader extends URLClassLoader {
public PathableClassLoader(ClassLoader parent) {
super(NO_URLS, parent);
}
/**
* Allow caller to explicitly add paths. Generally this not a good idea;
* use addLogicalLib instead, then define the location for that logical
* library in the build.xml file.
*/
public void addURL(URL url) {
System.err.println("adding URL [" + url + "]");
super.addURL(url);
}
/**
* Specify whether this classloader should ask the parent classloader