geronimo-xbean-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1484013 - /geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ResourceFinder.java
Date Fri, 17 May 2013 22:09:26 GMT
Author: rmannibucau
Date: Fri May 17 22:09:26 2013
New Revision: 1484013

URL: http://svn.apache.org/r1484013
Log:
reverting win hack in ResourceFinder since it was induced by an issue in surefire handling
fixed in previous commit

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

Modified: geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ResourceFinder.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ResourceFinder.java?rev=1484013&r1=1484012&r2=1484013&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ResourceFinder.java
(original)
+++ geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ResourceFinder.java
Fri May 17 22:09:26 2013
@@ -32,7 +32,6 @@ import java.util.Enumeration;
 import java.util.HashMap;
 import java.util.Iterator;
 import java.util.List;
-import java.util.Locale;
 import java.util.Map;
 import java.util.Properties;
 import java.util.Vector;
@@ -44,8 +43,6 @@ import java.util.jar.JarFile;
  * @version $Rev$ $Date$
  */
 public class ResourceFinder {
-    private static final boolean WIN = System.getProperty("os.name").toLowerCase(Locale.ENGLISH).contains("win");
-
     private final URL[] urls;
     private final String path;
     private final ClassLoader classLoader;
@@ -1021,9 +1018,6 @@ public class ResourceFinder {
                     StringBuffer buf = new StringBuffer(2 + hostLength + baseFile.length()
+ resourceName.length());
 
                     if (hostLength > 0) {
-                        if (WIN && "file".equals(protocol)) {
-                            buf.append(":");
-                        }
                         buf.append("//").append(host);
                     }
                     // baseFile should always ends with '/'



Mime
View raw message