Ant reassigns the System.[in|out|err] to its Listeners and InputStreams. 
Just an idea: 
- your program could write the input to file
- you start that program via <java spawn="true">
- you wait until timeout or availability of the file

Jan 

>-----Ursprüngliche Nachricht-----
>Von: Jacob Albertson [mailto:[EMAIL PROTECTED] 
>Gesendet: Donnerstag, 21. Juli 2005 21:40
>An: [email protected]
>Betreff: Ant Input Problem
>
>Hi,
>    I have written a CustomTask that waits for some input from 
>a web server in a loop but if it reaches a timeout it stops. I 
>want the user to have the option to press a and enter at 
>anytime to abort the check and continue execution. I have 
>implemented this in java using the System.in.available() 
>command and then the System.in.read(buffer, 0, c). My code 
>runs fine when run in java however when called through the 
>custom tasks ant never accepts input let alone send the input 
>to my program. No characters I type show up on the screen. 
>Basically the functionality I am looking for is non-blocking 
>input and am willing to implement it anyway possible even if 
>it is a bit of a hack. Thanks in advance. 
>
>Jacob 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to