geronimo-xbean-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1638797 - /geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ClassLoaders.java
Date Wed, 12 Nov 2014 14:14:57 GMT
Author: rmannibucau
Date: Wed Nov 12 14:14:57 2014
New Revision: 1638797

URL: http://svn.apache.org/r1638797
Log:
XBEAN-275 try to keep nice performances but read MANIFEST.MD Class-Path as well

Modified:
    geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ClassLoaders.java

Modified: geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ClassLoaders.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ClassLoaders.java?rev=1638797&r1=1638796&r2=1638797&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ClassLoaders.java
(original)
+++ geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ClassLoaders.java
Wed Nov 12 14:14:57 2014
@@ -55,6 +55,12 @@ public final class ClassLoaders {
                     urls.add(url);
                 }
             }
+
+            // java -jar xxx.jar and use MANIFEST.MF Class-Path?
+            // here perf is not an issue since we would either miss all the classpath or
we have a single jar
+            if (urls.size() == 1) {
+                urls.addAll(findUrlFromResources(classLoader));
+            }
         } else {
             for (final URL url : findUrlFromResources(classLoader)) {
                 urls.add(url);



Mime
View raw message