ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Sanders" <sa...@totalsync.com>
Subject Re: Ant2 Feature Suggestion
Date Tue, 13 Mar 2001 04:32:24 GMT
> At 08:26  12/3/01 -0800, Scott Sanders wrote:
> >How about some sort of onfail functionality, such that if a task
> >fails, a backup task can run no matter what.  Sort of try/finally
type
> >stuff.
> >
> >Or is it already there?
>
> only partially through listeners.
>
> We should generalize it to generic "handlers" that determine
behaviour
> based on build events etc.

So, say I touch a foo.SUCCESS file if the build succeeds.  Obviously,
I can just do that at the very end.  But I also want the ability to
touch the foo.FAILURE file (or some other status mechanism) if
something (anything) fails.

Something like <target name="build"
onfail="build-failed">....</target>

Thanks,
Scott


---------------------------------------------------------------------
To unsubscribe, e-mail: ant-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: ant-dev-help@jakarta.apache.org


Mime
View raw message