cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r470717 - /incubator/cxf/trunk/tools/wsdl2java/src/main/java/org/apache/cxf/tools/wsdl2java/processor/compiler/Compiler.java
Date Fri, 03 Nov 2006 08:24:59 GMT
Author: ema
Date: Fri Nov  3 00:24:58 2006
New Revision: 470717

URL: http://svn.apache.org/viewvc?view=rev&rev=470717
Log:
Fixed tool compile issue with IBM's JDK 

Modified:
    incubator/cxf/trunk/tools/wsdl2java/src/main/java/org/apache/cxf/tools/wsdl2java/processor/compiler/Compiler.java

Modified: incubator/cxf/trunk/tools/wsdl2java/src/main/java/org/apache/cxf/tools/wsdl2java/processor/compiler/Compiler.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/wsdl2java/src/main/java/org/apache/cxf/tools/wsdl2java/processor/compiler/Compiler.java?view=diff&rev=470717&r1=470716&r2=470717
==============================================================================
--- incubator/cxf/trunk/tools/wsdl2java/src/main/java/org/apache/cxf/tools/wsdl2java/processor/compiler/Compiler.java
(original)
+++ incubator/cxf/trunk/tools/wsdl2java/src/main/java/org/apache/cxf/tools/wsdl2java/processor/compiler/Compiler.java
Fri Nov  3 00:24:58 2006
@@ -48,18 +48,16 @@
                 System.arraycopy(args, 0, cmdArray, 0, sourceFileIndex);
                 cmdArray[sourceFileIndex] = "@" + tmpFile;
             } else {
-                /*//Sun's jdk bug on windows xp and windows 2000. It will be fixed in mustung

-                //get windows
-                if (System.getProperty("os.name").toLowerCase().indexOf("windows") > -1)
{
-                    for (int i = 0; i < args.length; i++) {
-                        if (!"/".equals(File.separator) && args[i].indexOf("package-info")
== -1) {
-                            args[i] = args[i].replace(File.separatorChar, '/');
-                        }
-                    }
-                }
-               */
                 cmdArray = new String[args.length];
                 System.arraycopy(args, 0, cmdArray, 0, args.length);
+            }
+            
+            if (System.getProperty("os.name").toLowerCase().indexOf("windows") > -1) {
+                for (int i = 0; i < cmdArray.length; i++) {
+                    if (cmdArray[i].indexOf("package-info") == -1) {
+                        cmdArray[i] = cmdArray[i].replace('\\', '/');
+                    }
+                }
             }
             
             p = Runtime.getRuntime().exec(cmdArray);



Mime
View raw message