If you use the nightly build (recommended):

<property name="dir.name" value="c:\some\path\to\delete" />
<delete dir="${dir.name}" if="${directory::exists(dir.name)}" />

If you want to use the release build, you <available> task is the solution.

Jarek

----- Original Message ----- 
From: "Bonnett, Evan A" <[EMAIL PROTECTED]>
To: "'Gert Driesen'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, March 12, 2004 7:43 PM
Subject: RE: [Nant-users] Where are command line options documented?


> I have a build file and would like to delete a directory IF it exists and
> then re make it.  If the dir doesn't exist, nant throws an error.  Is
there
> a way to do an existence check on the directory?
>
>
> Evan A. Bonnett
> Reynolds and Reynolds, IT
> ERA Integrated Desking Development
> 937-485-8577
> 58577
>
>
>



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to