You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by mm...@apache.org on 2007/03/29 15:57:45 UTC
svn commit: r523716 -
/incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/URIParserUtil.java
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);
}
}
}