ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Donald Strong" <dstr...@agentissoftware.com>
Subject RE: FINALLY target?
Date Mon, 15 Sep 2003 23:29:53 GMT
Hi Leonardo,

What you want is in ant-contrib.jar

http://ant-contrib.sourceforge.net/ant-contrib/manual/

Donald.

> -----Original Message-----
> From: Leonardo Abreu de Barros [mailto:leobarros@email.com]
> Sent: Tuesday, 16 September 2003 12:24 AM
> To: ant-user@jakarta.apache.org
> Subject: FINALLY target?
> 
> 
> Hi all,
> 
> Hope you can help me. I'm running a suite of tests on directories with
> real data so I need to backup all this data before I start the tests.
> This is done using a target "backup". As soon as all tests get done, I
> call another target that restores the original data. 
> The problem is, when something goes wrong, the build fails and the
> data isn't restored. 
> Is there a way to always guarantee that this target will be called?
> What I'm looking for is something similar to the "FINALLY" keyword in
> Java, applied to the concept of Ant builds.
> Any idea how to accomplish this?
> 
> Thanks in advance,
> Leonardo Barros
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org

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


Mime
View raw message