geronimo-xbean-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiam...@apache.org
Subject svn commit: r1347592 - /geronimo/xbean/trunk/xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/BundleUtils.java
Date Thu, 07 Jun 2012 12:53:05 GMT
Author: xiaming
Date: Thu Jun  7 12:53:04 2012
New Revision: 1347592

URL: http://svn.apache.org/viewvc?rev=1347592&view=rev
Log:
GERONIMO-6358 Fixed space char issue when Geronimo is installed in a folder with space chars,
provided by Saphen Qiu

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

Modified: geronimo/xbean/trunk/xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/BundleUtils.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/BundleUtils.java?rev=1347592&r1=1347591&r2=1347592&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/BundleUtils.java
(original)
+++ geronimo/xbean/trunk/xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/BundleUtils.java
Thu Jun  7 12:53:04 2012
@@ -272,7 +272,7 @@ public class BundleUtils {
      */
     public static File toFile(String url) {
         if (url !=null && url.startsWith(REFERENCE_FILE_SCHEMA)) {
-            File file = new File(url.substring(REFERENCE_FILE_SCHEMA.length()));
+            File file = new File(url.substring(REFERENCE_FILE_SCHEMA.length()).replaceAll("%20",
" "));
             if (file.exists()) {
                 return file;
             }



Mime
View raw message