commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skitch...@apache.org
Subject svn commit: r369711 - /jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/PathableClassLoader.java
Date Tue, 17 Jan 2006 07:53:47 GMT
Author: skitching
Date: Mon Jan 16 23:53:44 2006
New Revision: 369711

URL: http://svn.apache.org/viewcvs?rev=369711&view=rev
Log:
Provide facility to add URLs to the classpath.

Modified:
    jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/PathableClassLoader.java

Modified: jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/PathableClassLoader.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/PathableClassLoader.java?rev=369711&r1=369710&r2=369711&view=diff
==============================================================================
--- jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/PathableClassLoader.java
(original)
+++ jakarta/commons/proper/logging/trunk/src/test/org/apache/commons/logging/PathableClassLoader.java
Mon Jan 16 23:53:44 2006
@@ -77,6 +77,16 @@
     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



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message