> Good Morning All-
>
> How do you test for the existence of a folder before del or mkdir
> operation
> Has something to with <property ???
>
> Thanks!
>
> Martin Gainty
>
> (mobile) 603-438-5053
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
Hello,
why do you want to check for it's existence? Both tasks (<delete> and
<mkdir>) can handle non-existing respectively existing directories. See
this example:
<project name="delete" default="all">
<target name="all">
<mkdir dir="dir/dir2" />
<mkdir dir="dir/dir2" />
<delete dir="dir" />
<delete dir="dir" />
</target>
</project>
It will successfully pass. The second <mkdir> won't do anything with the
original content of the folder.
Best regards
Ondrej Svetlik
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]