cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: r523716 - /incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/URIParserUtil.java
Date Thu, 29 Mar 2007 13:57:45 GMT
Author: mmao
Date: Thu Mar 29 06:57:40 2007
New Revision: 523716

URL: http://svn.apache.org/viewvc?view=rev&rev=523716
Log:
Fix build on unix platform 

Modified:
    incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/URIParserUtil.java

Modified: incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/URIParserUtil.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/URIParserUtil.java?view=diff&rev=523716&r1=523715&r2=523716
==============================================================================
--- incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/URIParserUtil.java
(original)
+++ incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/URIParserUtil.java
Thu Mar 29 06:57:40 2007
@@ -219,7 +219,7 @@
         URL url = null;
         try {
             url = new URL(uri);
-            return url.toString();
+            return url.toString().replace("\\", "/");
         } catch (MalformedURLException e1) {
             try {
                 String f = null;
@@ -230,7 +230,7 @@
                 }
 
                 url = new URL(f);
-                return url.toString();
+                return url.toString().replace("\\", "/");
             } catch (MalformedURLException e2) {
                 return uri.replace("\\", "/");
             }
@@ -249,7 +249,7 @@
         } catch (MalformedURLException e1) {
             return normalize(arg);
         } catch (URISyntaxException e2) {
-            return getAbsoluteURI(normalize(arg));
+            return normalize(arg);
         }
     }    
 }



Mime
View raw message