ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject Re: Catching Results of exec
Date Thu, 20 Dec 2001 06:35:00 GMT

----- Original Message -----
From: "Andreas Guther" <andreas@netfuel.com>
To: <ant-user@jakarta.apache.org>
Sent: Wednesday, December 19, 2001 16:44
Subject: Catching Results of exec


> Hi:
>
> I wonder how I can catch the result of an exec and then fire
> a specific target.
>
> I have a build file that calls a lots of make files with exec.
> I have failonerror="false" and the output goes into a log
> file.
>
> In case the exec returns e.g. 2 I still want to continue the build
> but I would like then fire a mail target for that log file
> in order to send the log file to the unit owner.
>
> In case the return code is available from a property, I could
> imagine to evaluate that with a condition but I still have
> no idea how to get the return code.
>
> Is there a way to catch that return code?

yeah, we stuck that in to <exec> about three/four weeks ago. Get the source
from CVS and build it and then you can save the return code of <exec> into
the property named with the resultproperty attribute.

-steve


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


Mime
View raw message