--- Douglas Kramer <[EMAIL PROTECTED]> wrote:

> When I use <exec> and specify output, all the output
> is redirected
> from the display to the log file.
> 
>     <exec dir="." executable="java"
> output="build.log">
> 
> I want to be able to also view the output as it
> runs.
> Is there any way to send both standard out and
> standard error
> simultaneously to both a log file and the display?
> 
> I'm basically looking for the equivalent to the csh
> "tee" command:
> 
> % cmd |& tee log
> 
In the CVS HEAD version of Ant, the <redirector> type
has an alwayslog attribute you can use to keep output
going to the log even when you have redirected to a
file or property as well.  This attribute will be
available in Ant 1.6.3 as well.

-Matt

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


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

Reply via email to