ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: task return codes
Date Mon, 23 Jul 2001 05:55:19 GMT
On Fri, 20 Jul 2001, Michael Starkie <efficacy@my-deja.com> 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
anyway.

See <http://jakarta.apache.org/ant/faq.html#mail-logger> for an
alternative approach.

Stefan

Mime
View raw message