> > >
> > ><delete>
> > > <fileset basedir="${folder}">
> > > <include name="**\bin" />
> > > <include name="**\obj" />
> > > </fileset>
> > ></delete>
> > >
> > >Unfortunately, NAnt doesn't delete the folders. I suspect
> > that this is
> > >because the folders are not empty.
>
> Yeps
>
> > The help suggests that I can specify
> > >a folder to be deleted with all of its sub-folders. This obviously
is
> > >not true when using a fileset. I haven't tested this using the
'dir'
> > >attribute.
>
> The base directory of the fileset itself will never be removed.
>
What I meant is that the documentation seems to imply (at least to me)
that the snippet above would match all bin and obj directories
underneath the ${folder} base directory and delete them, even if they
are not empty. But as you say, they are not deleted because they are not
empty. I was just trying to point out a potential point of confusion for
users in the documentation.
--Edwin
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users