ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: Ant Input Problem
Date Mon, 25 Jul 2005 07:10:59 GMT
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


>-----Urspr√ľngliche Nachricht-----
>Von: Jacob Albertson [] 
>Gesendet: Donnerstag, 21. Juli 2005 21:40
>Betreff: Ant Input Problem
>    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 
>command and then the, 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. 

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

View raw message