Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Error proof Ant Task

Error proof Ant Task

2003-03-10       - By Lee, Michael.M
Reply:     1     2     3     4     5     6     7     8  

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.


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.