You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Holger Rauch <ho...@heitec.de> on 2007/10/02 16:50:11 UTC

Capturing Ant output in a way similar to Unix pipes

Hi to all list members,

I've looked in the Ant manual and googled about the questions mentioned
below but unfortunately haven't found anything useful.

Is it possible to use the output of one Ant task as the input of another Ant
task (some sort of piping mechanism as it exists in Unix) without the usage
of intermediate temporary files? If so, how can this be done? 

Is it possible to access the standard file descriptors for
stdin (0), stdout (1), and stderr (2) directly from within Ant? If so, how?

Thanks in advance for any advice/pointers!

Kind regards,

	Holger

Re: Capturing Ant output in a way similar to Unix pipes

Posted by Dominique Devienne <dd...@gmail.com>.
On 10/2/07, Holger Rauch <ho...@heitec.de> wrote:
> Is it possible to use the output of one Ant task as the input of another Ant
> task (some sort of piping mechanism as it exists in Unix) without the usage
> of intermediate temporary files? If so, how can this be done?

> Is it possible to access the standard file descriptors for
> stdin (0), stdout (1), and stderr (2) directly from within Ant? If so, how?

Some tasks support redirection of output via <redirector>, but I
believe that it's only <exec> and <java>, i.e. tasks using Execute
internally. This may be what you were looking for.

But I am not sure you can "pipe" things though, and that's certainly
not something you can do generically with any task in Ant. --DD

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org