> From: Bart Golsteijn [mailto:[EMAIL PROTECTED] > Sent: Thursday, 2 October 2003 12:16 AM > To: [EMAIL PROTECTED] > Subject: Re: Use stdin as input for a forked java task > > > Why isn't this going to be implemented? Is there a large > technical problem > to implement this? If you can point out the problem, maybe I can > work it out > myself. > > Bart
There are a few issues. The main issue is pumping the input into the external process. There is no way to know when or if an external process wants input. We can't know how much data to send to the external process. Since there are buffers involved, it would probably not block until we'd filled up some buffer. In that case, we'd have to consume some block of input from Ant's input stream to send to the external process. This would be before the extenral process had generated prompts, etc. With a string or file, we can safely pump as much input into the process as it will accept. The other issue comes when running multiple operations in parallel. Which one gets the input? The only possibility I could see would be to create some sort of external console to supply input to the forked process. Conor --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]