Ian
James C. Papp wrote:
Ian, here is a new version that adds attribute "outputpropertymode". It can be set to standard, error, or all. The default is all. I've also corrected a small bug where I was not adding a linefeed to the output.
James.
Quoting Ian MacLean <[EMAIL PROTECTED]>:
James, This looks good. However I'm wondering if it would be better to use seperate properties for stderr and stdout
Ian
Here is a patch that adds two badly needed features (well..., at least forme
:-)) to the <exec/> task.the
One is resultproperty, which is used to specify a property that will receive
exit code of the process (it more useful when failonerror is false).will
The other one is outputproperty, which is used to specify a property that
receive the output of the process. Unlike Ant, this includes both thestandard
and error streams and works regardless if the output has been redirected toa
processfile. This is very handy for programs like perforce were the output of the command is needed to determine build events later on in the script.
The data return for both properties is always that last execution of the
(for example, if you use retrycount).
James.
-- Ian MacLean, Developer, ActiveState, a division of Sophos http://www.ActiveState.com
--
Ian MacLean, Developer, ActiveState, a division of Sophos
http://www.ActiveState.com
------------------------------------------------------- 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