I tried the new 1.3 form of <delete> with the includeEmptyDirs tag and found
it didn't quite do what I expected.
Here's my XML:
<delete includeEmptyDirs="true" >
<fileset dir="${builddir}" />
</delete>
I expected ${builddir} to be completely empty after running this task, but
it was not. There were no files left, but lots of empty directories. I
think the problem is that directories with subdirectories are not considered
empty, even if the subdirectories are. Running this task repeatedly removes
one level of directories each time.
So if I have:
/a
/a/b
/a/b/c
the first iteration will rmdir /a/b/c, the next /a/b, and the last, /a.
.C. Baltz
Senior Engineer
Response Networks, Inc.
North Andover, MA
(978)725-3133