cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject svn commit: r1460872 - /cxf/trunk/tools/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/WSDLToJavaContainer.java
Date Mon, 25 Mar 2013 20:18:13 GMT
Author: ay
Date: Mon Mar 25 20:18:13 2013
New Revision: 1460872

URL: http://svn.apache.org/r1460872
Log:
windows fix for CXF-4871

Modified:
    cxf/trunk/tools/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/WSDLToJavaContainer.java

Modified: cxf/trunk/tools/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/WSDLToJavaContainer.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/WSDLToJavaContainer.java?rev=1460872&r1=1460871&r2=1460872&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/WSDLToJavaContainer.java
(original)
+++ cxf/trunk/tools/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/WSDLToJavaContainer.java
Mon Mar 25 20:18:13 2013
@@ -369,10 +369,10 @@ public class WSDLToJavaContainer extends
     
     private void createClientJar(File tmpDirectory, JarOutputStream jarout) {
         try {
-            URI parentFile = new URI((String)context.get(ToolConstants.CFG_CLASSDIR));
+            URI parentFile = new File((String)context.get(ToolConstants.CFG_CLASSDIR)).toURI();
             for (File file : tmpDirectory.listFiles()) {
-                URI relativePath = parentFile.relativize(new URI(file.getPath()));
-                String name = relativePath.toString().replace("\\", "/");
+                URI relativePath = parentFile.relativize(file.toURI());
+                String name = relativePath.toString();
                 if (file.isDirectory()) {
                     if (!StringUtils.isEmpty(name)) {
                         if (!name.endsWith("/")) {



Mime
View raw message