D
Douwe
Hi,
I created a build.xml file that starts a spawned java application. The
program starts fine and the ant terminates nicely as expected.
Unfortunately this program can (just like any other program) produce
errors on the console and Ant does not allow you to redirect the
standard output (stdout) while spawning a proces.
I´ve browsed the Ant source code and ended read the Java API of the
Process class (since this is indirectly called by the ant task <java>.
This API reports that the process knows three methods called:
Process.getOutputStream(), Process.getInputStream(),
Process.getErrorStream().
Is their somehow a workaround to set the stdout in a new process
without altering my program?
Thnx
I created a build.xml file that starts a spawned java application. The
program starts fine and the ant terminates nicely as expected.
Unfortunately this program can (just like any other program) produce
errors on the console and Ant does not allow you to redirect the
standard output (stdout) while spawning a proces.
I´ve browsed the Ant source code and ended read the Java API of the
Process class (since this is indirectly called by the ant task <java>.
This API reports that the process knows three methods called:
Process.getOutputStream(), Process.getInputStream(),
Process.getErrorStream().
Is their somehow a workaround to set the stdout in a new process
without altering my program?
Thnx