cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r521574 - /incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ProcessorTestBase.java
Date Fri, 23 Mar 2007 04:06:51 GMT
Author: ema
Date: Thu Mar 22 21:06:50 2007
New Revision: 521574

URL: http://svn.apache.org/viewvc?view=rev&rev=521574
Log:
Fixed issue with build error caused by spaces in project and repo path

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

Modified: incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ProcessorTestBase.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ProcessorTestBase.java?view=diff&rev=521574&r1=521573&r2=521574
==============================================================================
--- incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ProcessorTestBase.java
(original)
+++ incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ProcessorTestBase.java
Thu Mar 22 21:06:50 2007
@@ -46,13 +46,14 @@
         env = null;
     }
 
-    protected String getClassPath() {
+    protected String getClassPath() throws URISyntaxException {
         ClassLoader loader = getClass().getClassLoader();
         StringBuffer classPath = new StringBuffer();
         if (loader instanceof URLClassLoader) {
             URLClassLoader urlLoader = (URLClassLoader)loader;
             for (URL url : urlLoader.getURLs()) {               
-                File file = new File(url.getFile());
+                File file;
+                file = new File(url.toURI());
                 String filename = file.getAbsolutePath();                
                 if (filename.indexOf("junit") == -1) {
                     classPath.append(filename);



Mime
View raw message