On Tue, 6 Jan 2004, James C. Papp <[EMAIL PROTECTED]> wrote:

> Quoting Ian MacLean <[EMAIL PROTECTED]>:
> 
>> This looks good. However I'm wondering if it would be better to use
>> seperate properties for stderr and stdout

> Yea, I was thinking the same thing (Ant does it this way), but
> sometimes you want the combined output (particularly with Windows
> command-line tools which seem not to get the whole stderr, stdout
> concept), and if you have two separate properties there is no way to
> recombined them in the order that the data was received.

>From the Ant manual page of <exec> for outputproperty:

,----
| The name of a property in which the output of the command should be
| stored. Unless the error stream is redirected to a separate file or
| stream, this property will include the error output.
`----

So if you don't explicitly set errorproperty as well (or redirect
stderr using the error attribute), outputproperty contains both.  This
is Ant 1.6.x.  Using earlier versions of Ant, you'd always get both
streams munged together IIRC.

Cheers

        Stefan

-- 
http://stefanbodewig.blogger.de/


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to