You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by wo...@apache.org on 2010/02/11 17:46:58 UTC

svn commit: r909071 - /webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/util/WSDL4JWrapper.java

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 {