ant-user mailing list archives

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

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

    [create lock]
    <protect>
       [do stuff that can signal error]
       <always>
          [release lock]
       </always>
    </protect>

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?
>
>Thanks,
>
>-jake

The Wabbit 



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


Mime
View raw message