geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r514937 - /geronimo/server/branches/1.2/modules/geronimo-system/src/main/java/org/apache/geronimo/system/repository/AbstractRepository.java
Date Tue, 06 Mar 2007 01:02:06 GMT
Author: djencks
Date: Mon Mar  5 17:02:05 2007
New Revision: 514937

URL: http://svn.apache.org/viewvc?view=rev&rev=514937
Log:
GERONIMO-2823 (port from trunk) Don't search system classloader for geronimo-dependency.xml

Modified:
    geronimo/server/branches/1.2/modules/geronimo-system/src/main/java/org/apache/geronimo/system/repository/AbstractRepository.java

Modified: geronimo/server/branches/1.2/modules/geronimo-system/src/main/java/org/apache/geronimo/system/repository/AbstractRepository.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/1.2/modules/geronimo-system/src/main/java/org/apache/geronimo/system/repository/AbstractRepository.java?view=diff&rev=514937&r1=514936&r2=514937
==============================================================================
--- geronimo/server/branches/1.2/modules/geronimo-system/src/main/java/org/apache/geronimo/system/repository/AbstractRepository.java
(original)
+++ geronimo/server/branches/1.2/modules/geronimo-system/src/main/java/org/apache/geronimo/system/repository/AbstractRepository.java
Mon Mar  5 17:02:05 2007
@@ -121,7 +121,11 @@
         } catch (MalformedURLException e) {
             throw (IllegalStateException)new IllegalStateException("Unable to get URL for
dependency " + artifact).initCause(e);
         }
-        ClassLoader depCL = new URLClassLoader(new URL[]{url}, ClassLoader.getSystemClassLoader());
+        ClassLoader depCL = new URLClassLoader(new URL[]{url}, new ClassLoader() {
+            public URL getResource(String name) {
+                return null;
+            }
+        });
         InputStream is = depCL.getResourceAsStream("META-INF/geronimo-dependency.xml");
         try {
             if (is != null) {



Mime
View raw message