Hey NAnt-folks,

I've been trying to figure out what's going on with the <delete> task.  I'm
seeing something strange.

When I do this:

<delete>
        <fileset basedir="${dir.deployPath}">
                <includes name="**\*.*" />
        </fileset>
</delete>

All the FILES in the tree of the basedir are deleted, but the directories in
the tree remain.

When I modify the include to this:

                <includes name="**" />

All the files AND directories in the specified basedir are deleted, but so
is the basedir itself as if I'd done this:
        <delete dir="${dir.deployPath}" />

Is this a bug?  I need to delete ALL the contents of a directory, but not
the directory itself.  Is there a way to do this with a particularly formed
<includes name="???" /> ?

Thanks.



-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
NAntContrib-Developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer

Reply via email to