On Thu, 30 Oct 2003, Johnny Tolliver <[EMAIL PROTECTED]> 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. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
