geronimo-xbean-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r1095593 - /geronimo/xbean/trunk/xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/BundleResourceFinder.java
Date Thu, 21 Apr 2011 02:56:03 GMT
Author: xuhaihong
Date: Thu Apr 21 02:56:03 2011
New Revision: 1095593

URL: http://svn.apache.org/viewvc?rev=1095593&view=rev
Log:
The elements in the bundle-classpath do not end with '/', need to add the slash based on the
value of prefix

Modified:
    geronimo/xbean/trunk/xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/BundleResourceFinder.java

Modified: geronimo/xbean/trunk/xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/BundleResourceFinder.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/BundleResourceFinder.java?rev=1095593&r1=1095592&r2=1095593&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/BundleResourceFinder.java
(original)
+++ geronimo/xbean/trunk/xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/BundleResourceFinder.java
Thu Apr 21 02:56:03 2011
@@ -128,8 +128,8 @@ public class BundleResourceFinder {
                     // scan embedded jar/zip
                     continueScanning = scanZip(callback, bundle, name);
                 } else {
-                    // assume it's a directory
-                    continueScanning = scanDirectory(callback, bundle, name + prefix);
+                    // assume it's a directory                    
+                    continueScanning = scanDirectory(callback, bundle, prefix.startsWith("/")
? name + prefix : name + "/" + prefix);
                 }
                 if (!continueScanning) {
                     break;



Mime
View raw message