ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wascally Wabbit <>
Subject Re: ant call on exit
Date Tue, 06 Jan 2004 13:41:06 GMT

We had similar problems (long ago). We wrote the <protect> task in
AntXtras to solve this problem. FYI:

    [create lock]
       [do stuff that can signal error]
          [release lock]

At 06:16 PM 1/2/2004, you wrote:
>My build.xml file creates a lock file at the beginning and deletes it at the
>end.  However, if there is a problem with compiling or the unittests, that
>lockfile doesn't get deleted.  Is there some way to specify that a target
>gets called on exit (preferrably even SIGINT)?
>I read in the documentation that you can write a listener that gets called
>when the build exits, but will that listener get called if the build does not
>exit successfully?

The Wabbit 

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

View raw message