ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: task return codes
Date Mon, 23 Jul 2001 05:55:19 GMT
On Fri, 20 Jul 2001, Michael Starkie <> wrote:

> I've searched throught the documentation and archives and I believe
> I can't capture a return code from a Task.  When I use the Mail task
> to send ant's logfile to an email address, the file get's mailed
> before the "BUILD SUCCESSFUL" or "BUILD FAILED" text get's appended
> to it.

There is nothing like a return code of a task or target.  Either build
succeeds or it fails, and if it fails, you <mail> task won't run

See <> for an
alternative approach.


View raw message