cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: r520371 - in /incubator/cxf/trunk/tools/common/src: main/java/org/apache/cxf/tools/util/URIParserUtil.java test/java/org/apache/cxf/tools/util/URIParserUtilTest.java
Date Tue, 20 Mar 2007 11:59:08 GMT
Author: mmao
Date: Tue Mar 20 04:59:07 2007
New Revision: 520371

URL: http://svn.apache.org/viewvc?view=rev&rev=520371
Log:
Fix build

Modified:
    incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/URIParserUtil.java
    incubator/cxf/trunk/tools/common/src/test/java/org/apache/cxf/tools/util/URIParserUtilTest.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=520371&r1=520370&r2=520371
==============================================================================
--- 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
Tue Mar 20 04:59:07 2007
@@ -225,6 +225,10 @@
     }
 
     public static String getAbsoluteURI(String arg) {
+        if (arg.startsWith("jar")) {
+            return arg;
+        }
+
         File tmpFile = null;
         URI uri = null;
         try {

Modified: incubator/cxf/trunk/tools/common/src/test/java/org/apache/cxf/tools/util/URIParserUtilTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/common/src/test/java/org/apache/cxf/tools/util/URIParserUtilTest.java?view=diff&rev=520371&r1=520370&r2=520371
==============================================================================
--- incubator/cxf/trunk/tools/common/src/test/java/org/apache/cxf/tools/util/URIParserUtilTest.java
(original)
+++ incubator/cxf/trunk/tools/common/src/test/java/org/apache/cxf/tools/util/URIParserUtilTest.java
Tue Mar 20 04:59:07 2007
@@ -49,9 +49,9 @@
         assertTrue(uri2.contains(uri));
 
         uri = getClass().getResource("/schemas/wsdl/xml-binding.xsd").toString();
+        System.err.println(uri);
         uri2 = URIParserUtil.getAbsoluteURI(uri);
         assertNotNull(uri2);
-        assertTrue(uri2.startsWith("file"));
-        assertTrue(uri2.contains(uri));        
+        assertTrue(uri2.contains(uri));
     }
 }



Mime
View raw message