Return-Path: Delivered-To: apmail-incubator-cxf-commits-archive@locus.apache.org Received: (qmail 20409 invoked from network); 3 Nov 2006 08:25:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Nov 2006 08:25:26 -0000 Received: (qmail 73650 invoked by uid 500); 3 Nov 2006 08:25:37 -0000 Delivered-To: apmail-incubator-cxf-commits-archive@incubator.apache.org Received: (qmail 73605 invoked by uid 500); 3 Nov 2006 08:25:37 -0000 Mailing-List: contact cxf-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-commits@incubator.apache.org Received: (qmail 73594 invoked by uid 99); 3 Nov 2006 08:25:37 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Nov 2006 00:25:37 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Nov 2006 00:25:25 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id 596D21A9846; Fri, 3 Nov 2006 00:24:59 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: cxf-commits@incubator.apache.org From: ema@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20061103082459.596D21A9846@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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);