ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <>
Subject Re: Retry task container
Date Mon, 14 May 2007 12:24:57 GMT
Jeffrey E Care wrote:
> How do you signal a task to clean up after itself after a failed attempt?

yes, you need a <finally> clause, which makes rollback that much harder.

SmartFrog's life is easier as there all components have an sfTerminate() 
operation that is called for them to clean up (or do a best-effort 
cleanup, let's be honest) at the end of their lifecycle. So it's easier 
to rollback state. when a sequence fails you terminate everything that 
is already running/deployed, then create new instances and try again, 
after an appropriate wait.

we dont have the same in ant...

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

View raw message