ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reuleaux, Andreas" <A.Reule...@klopotek.de>
Subject java-task, redirecting stdout (> outfile)?
Date Thu, 17 Aug 2000 15:13:42 GMT
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
 


Mime
View raw message