https://issues.apache.org/bugzilla/show_bug.cgi?id=23273
--- Comment #7 from Dumitru Postoronca <[email protected]> 2008-12-19 02:23:35 PST --- (In reply to comment #6) > can confirm that it still fails with Ant 1.7.1 and JDK 6 Update 7 on Windows. > This seems to be a JVM issue as there are a lot of bug reports on bugs.sun.com related to using Runtime.exec() method in Windows and command line parsing. I wrote a simple program that uses Runtime.exec() and I got the same (bad) results as shown in the bug report so it's not ant-related (though it would be nice if ant had a work-around for this). ==== public static void main(String[] args) throws IOException, InterruptedException { Process p = Runtime.getRuntime().exec(new String[] {"java.exe", "MyClass", "a \\", "222" }, null, null); //p.waitFor(); BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream())); String s; while((s = in.readLine()) != null) { System.out.println(s); } } ==== -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
