Ant is so good, that I use it to launch java programs (with the java core task). Problem: The Output and Error Stream of the java tasks are merged into the system standard output stream, removing any change to make a distinction between them. The Input stream is not passed at all, thus make it impossible to launch a java program that want to use the standard input stream ! I hope it was not made on purpose and is just two lines of code to add in files: /src/main/org/apache/tools/ant/taskdefs/ExecuteJava.java and Java.java Hope to see that as a fix in 1.3
degrading to Enhancement - even though it is a very important issue.
*** Bug 5417 has been marked as a duplicate of this bug. ***
It was more than just two lines of code but it is now done. You can specify the input stream, separate the output and error streams. Implemented in Ant 1.6
*** Bug 14756 has been marked as a duplicate of this bug. ***