ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Fetzer <>
Subject Re: onsuccess or onfailure
Date Fri, 10 Apr 2009 14:32:39 GMT
Sorry, I should have given you more detail.  It does exactly what it says.  When the build
fails (i.e. a target that isn't set for onfailure="false" fails) or finishes with success,
it immediately calls the target specified.  In my example, it would call either the onsuccess
or onfailure targets.  Very useful to me because I want to send emails, unlock files in StarTeam,
scan logs... for onfailure, but not for success.

From: Matt Benson <>
To: Ant Users List <>
Sent: Thursday, April 9, 2009 4:24:12 PM
Subject: Re: onsuccess or onfailure

--- On Thu, 4/9/09, Eric Fetzer <> wrote:

> From: Eric Fetzer <>
> Subject: onsuccess or onfailure
> To: "Ant Users" <>
> Date: Thursday, April 9, 2009, 2:42 PM
> Hi!  I'm an ex-NAnt user coming over
> to the Ant side.  Most things are close to identical, but I
> have a question about something I'm not finding.  In NAnt,
> you can create properties:
> <property name="nant.onsuccess" value="onsuccess"/> 
> <property name="nant.onfailure" value="onfailure"/>
> which will go to the corresponding onsuccess or onfailure
> targets when finished based on whether it succeeded or
> not.  I'm sure there is the equivalent in Ant, but have
> been unable to find it.  Can someone please give me a link
> or such?

This smells of some NAnt-ness quite foreign to Ant.  Personally speaking, I need more information
about what these properties are supposed to do before I can offer any useful advice.


> Thanks,
> Eric


To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message