Here is a patch that adds two badly needed features (well..., at least for me :-)) to the <exec/> task.
One is resultproperty, which is used to specify a property that will receive the exit code of the process (it more useful when failonerror is false). The other one is outputproperty, which is used to specify a property that will receive the output of the process. Unlike Ant, this includes both the standard and error streams and works regardless if the output has been redirected to a file. 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 process (for example, if you use retrycount). James.
ExternalProgramBase.zip
Description: Zip compressed data
