axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wood...@apache.org
Subject svn commit: r909071 - /webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/util/WSDL4JWrapper.java
Date Thu, 11 Feb 2010 16:46:58 GMT
Author: woodroy
Date: Thu Feb 11 16:46:48 2010
New Revision: 909071

URL: http://svn.apache.org/viewvc?rev=909071&view=rev
Log:
Insure proper handling of Windows spaces in path

Modified:
    webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/util/WSDL4JWrapper.java

Modified: webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/util/WSDL4JWrapper.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/util/WSDL4JWrapper.java?rev=909071&r1=909070&r2=909071&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/util/WSDL4JWrapper.java
(original)
+++ webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/util/WSDL4JWrapper.java
Thu Feb 11 16:46:48 2010
@@ -398,7 +398,8 @@
 
         for (URL url : urlList) {
             if ("file".equals(url.getProtocol())) {
-                final File f = new File(url.getPath());
+                // Insure that Windows spaces are properly handled in the URL
+                final File f = new File(url.getPath().replaceAll("%20", " "));
                 // If file is not of type directory then its a jar file
                 if (isAFile(f)) { 
                     try {



Mime
View raw message