cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r712312 - /cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java
Date Fri, 07 Nov 2008 23:53:09 GMT
Author: bimargulies
Date: Fri Nov  7 15:53:08 2008
New Revision: 712312

URL: http://svn.apache.org/viewvc?rev=712312&view=rev
Log:
Fix CXF-1903.

Modified:
    cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java

Modified: cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java
URL: http://svn.apache.org/viewvc/cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java?rev=712312&r1=712311&r2=712312&view=diff
==============================================================================
--- cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java
(original)
+++ cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java
Fri Nov  7 15:53:08 2008
@@ -310,11 +310,13 @@
         if (doneFileName.startsWith(basedir.toString())) {
             doneFileName = doneFileName.substring(basedir.toString().length());
         }
+
+        // If URL to WSDL, replace ? and & since they're invalid chars for file names
+        // Not to mention slashes.
         
         doneFileName = doneFileName.replace('?', '_')
-            .replace('&', '_').replace('/', '_').replace('\\', '_');
+            .replace('&', '_').replace('/', '_').replace('\\', '_').replace(':', '_');

         
-        // If URL to WSDL, replace ? and & since they're invalid chars for file names
         File doneFile =
             new File(markerDirectory, "." + doneFileName + ".DONE");
         



Mime
View raw message