ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <>
Subject Stdout of Java.execute() without going through a file?
Date Sat, 14 Aug 2004 21:51:56 GMT
Hi Ant gurus,

I'm using the Ant Java task to start J2EE containers. However, in order to
know if they are started I'd like to read the stdout produced by these
containers. Now there are 2 solutions I know of:

- using java.setOutputProperty(). The problem is that the property is only
set when the execute() command returns which doesn't work for several
containers that do not return (Orion for example).

- using java.setOutput(File). However this goes to a file and I'd rather not
use it for 2 reasons: I'd rather not have to output to a file as I may not
always have a handy location for that file (I'd rather not use tmp dir
either) + I'd like to make the file output optional, decided by the user.

My question: Is there a way I can use to monitor the stdout content
resulting from the execution of execute() without going through a file?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message