ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <>
Subject RE: Use stdin as input for a forked java task
Date Wed, 01 Oct 2003 15:03:36 GMT
> From: Bart Golsteijn []
> Sent: Thursday, 2 October 2003 12:16 AM
> To:
> 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.


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

View raw message