ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lee, Michael.M" <Michael.M....@westgroup.com>
Subject RE: Error proof Ant Task
Date Mon, 10 Mar 2003 19:24:13 GMT
isn't there any tasks build in ANT standard library?

if not, how hard/easy is it to install antelope?  

Thanks for your super quick reply!!

P.s.  the link on the bottom did not work.  however, i just searched
antelope in sourceforge.net and found the link~ thanks~~

Michael.

-----Original Message-----
From: David McTavish [mailto:dmctavish@SANDVINE.com]
Sent: Monday, March 10, 2003 1:14 PM
To: 'Ant Users List'
Subject: RE: Error proof Ant Task


or, you could use the try/catch/finally tasks from antelope, which sounds
more in line with what you are trying to do (make a transactional action in
ant).

www.sourceforge.net/antelope

d.

easy to use as well:

<try>
   <!-- mount your drive ... ->

    <finally>
        <!-- unmount your drive -->
    </finally>
</try>

d.


-----Original Message-----
From: Lee, Michael.M [mailto:Michael.M.Lee@westgroup.com]
Sent: Monday, March 10, 2003 2:12 PM
To: 'Ant Users List'
Subject: Error proof Ant Task


I have a target in my script that mounts the network drive.  It can be
unmounted at the end of the script.

However, once the build fails, it never gets to unmount the drive.  So if i
try to run it next time, it gives an error because the network drive is
already in the system and cannot mount it twice.

so here is my question.

is it possible to write an ant task so that it checks whether there is a
mounted drive or not, and if there is, unmount it first, otherwise, just go
to next task?

thanks.

---------------------------------------------------------------------
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