ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: reading stdin from <java> task
Date Fri, 31 Oct 2003 07:20:47 GMT
On Thu, 30 Oct 2003, Johnny Tolliver <> wrote:

> I want to run a simple test client program with a command like "ant
> client" to run the "client" target that uses the <java> task. And I
> need to read stdin from within the Java client program. Is that
> possible? If so, how?

Don't fork, then you can do it.  If you set fork="true" in your <java>
task, you won't have access to stdin.

In Ant 1.6beta, you can at least pass input from a property or a file
to your client program.  On Unix based systems, input="/dev/tty" may
(or may not) work to make that interactive.


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

View raw message