ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony LaPaso" <tlap...@attbi.com>
Subject ?? A Clean-Up Task that Always Runs ??
Date Thu, 20 Jun 2002 03:28:00 GMT
Hello all,

I'd like to have a task that always executes as the *last* task
in my project, regardless of the target task that was specified
on the command line.

So, my first stab is something like this, which will not work:

<task name="myTask">
   ...whatever...
   <antcall target="cleanupTask"/>
</task>

The problem is that this will execute "cleanupTask" at the end of
*every* task. I want "cleanupTask" to execute just once -- as the
very last task, regardless of what other task(s) may have
executed earlier.

Is there an elegant (or even ugly) way to specify this?

Thanks very much.

Tony






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


Mime
View raw message