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:
@@ -78,6 +78,16 @@ public class PathableClassLoader extends URLClassLoader {
|
|||||||
super(NO_URLS, 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
|
* Specify whether this classloader should ask the parent classloader
|
||||||
* to resolve a class first, before trying to resolve it via its own
|
* to resolve a class first, before trying to resolve it via its own
|
||||||
|
|||||||
Reference in New Issue
Block a user