You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by dk...@apache.org on 2007/11/29 09:18:24 UTC

svn commit: r599325 - /maven/plugins/trunk/maven-remote-resources-plugin/src/main/java/org/apache/maven/plugin/resources/remote/RemoteResourcesClassLoader.java

Author: dkulp
Date: Thu Nov 29 00:18:19 2007
New Revision: 599325

URL: http://svn.apache.org/viewvc?rev=599325&view=rev
Log:
[MRRESOURCES-28] Don't grab resources from the uber jar

Modified:
    maven/plugins/trunk/maven-remote-resources-plugin/src/main/java/org/apache/maven/plugin/resources/remote/RemoteResourcesClassLoader.java

Modified: maven/plugins/trunk/maven-remote-resources-plugin/src/main/java/org/apache/maven/plugin/resources/remote/RemoteResourcesClassLoader.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-remote-resources-plugin/src/main/java/org/apache/maven/plugin/resources/remote/RemoteResourcesClassLoader.java?rev=599325&r1=599324&r2=599325&view=diff
==============================================================================
--- maven/plugins/trunk/maven-remote-resources-plugin/src/main/java/org/apache/maven/plugin/resources/remote/RemoteResourcesClassLoader.java (original)
+++ maven/plugins/trunk/maven-remote-resources-plugin/src/main/java/org/apache/maven/plugin/resources/remote/RemoteResourcesClassLoader.java Thu Nov 29 00:18:19 2007
@@ -19,8 +19,10 @@
  * under the License.
  */
 
+import java.io.IOException;
 import java.net.URLClassLoader;
 import java.net.URL;
+import java.util.Enumeration;
 
 /**
  * @author Jason van Zyl
@@ -37,4 +39,16 @@
     {
         super.addURL( url );
     }
+    
+    // don't check the parents for the resources.   Just check the jars
+    // that we have provided.   Thus, we don't pull junk from the
+    // system classpath jars and stuff instead of the jars
+    // we specifically provided
+    public URL getResource(String name) {
+        return findResource(name);
+    }
+    public Enumeration getResources(String name) throws IOException {
+        return findResources(name);
+    }
+
 }