tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lrese...@apache.org
Subject svn commit: r572454 - /incubator/tuscany/java/sca/modules/wsdl2java/src/main/java/org/apache/tuscany/tools/wsdl2java/generate/WSDL2JavaGenerator.java
Date Mon, 03 Sep 2007 23:51:17 GMT
Author: lresende
Date: Mon Sep  3 16:51:17 2007
New Revision: 572454

URL: http://svn.apache.org/viewvc?rev=572454&view=rev
Log:
TUSCANY-1642 - Passing the write filename when calling SDO generator

Modified:
    incubator/tuscany/java/sca/modules/wsdl2java/src/main/java/org/apache/tuscany/tools/wsdl2java/generate/WSDL2JavaGenerator.java

Modified: incubator/tuscany/java/sca/modules/wsdl2java/src/main/java/org/apache/tuscany/tools/wsdl2java/generate/WSDL2JavaGenerator.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/wsdl2java/src/main/java/org/apache/tuscany/tools/wsdl2java/generate/WSDL2JavaGenerator.java?rev=572454&r1=572453&r2=572454&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/wsdl2java/src/main/java/org/apache/tuscany/tools/wsdl2java/generate/WSDL2JavaGenerator.java
(original)
+++ incubator/tuscany/java/sca/modules/wsdl2java/src/main/java/org/apache/tuscany/tools/wsdl2java/generate/WSDL2JavaGenerator.java
Mon Sep  3 16:51:17 2007
@@ -31,6 +31,7 @@
 import java.util.List;
 import java.util.Map;
 import java.util.StringTokenizer;
+import java.util.Vector;
 
 import javax.xml.namespace.QName;
 
@@ -185,9 +186,13 @@
                     buildCommand.append(" ");
                     buildCommand.append(sdoGenArgsString);
                 }
-                buildCommand.append(" ");
-                buildCommand.append(wsdlFileName);
-                String[] sdoGenCommand = buildCommand.toString().split("\\s+");  
+                
+                //TUSCANY-1642 - We shouldn't split the wsdlFileName as it my contain a filename
with spaces
+                Vector sdoCommand = new Vector(java.util.Arrays.asList(buildCommand.toString().split("\\s+")));
+                sdoCommand.add(wsdlFileName);
+
+                String[] sdoGenCommand = new String[sdoCommand.size()];
+                sdoCommand.toArray(sdoGenCommand);  
                 
                 if ((genOptions & VERBOSE_MODE)!=0){
                         System.out.println("Options passed to XSD2Java: ");



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message