On Mon, Mar 12, 2001 at 08:32:24PM -0800, Scott Sanders wrote: > > 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.
How about assuming failure: - touch foo.RAN and foo.FAILURE at the beginning - remove foo.FAILURE at the end if things succeeded if foo.RAN exists and foo.FAILURE doesn't, the build succeeded. --Jeff > Something like <target name="build" > onfail="build-failed">....</target> > > Thanks, > Scott --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
