You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Reuleaux, Andreas" <A....@klopotek.de> on 2000/08/17 17:13:42 UTC
java-task, redirecting stdout (> outfile)?
Hi,
my java program writes to stdout,
calling it with
<java classname="MyProg"
classpath="whatever"
fork="yes"
/>
works fine and prints a lot of lines like this on the screen
[java] here is the output
[java] of my program
[java] ...
how can i redirect stdout to a file (obviously I don't want the
[java]s in my file)?
<java classname="MyProg > outfile"
classpath="whatever"
fork="yes"
/>
works under UNIX but not under Windows. Can any attribute for the java-task
or even better any option to the ant-Program do the job?
Thanks in advance,
Andreas