At 01:13 PM 6/16/00 -0700, you wrote: >Not quite. > ><delete dir="xyz" /> > >will not delete the directory, it will just fail to match any files and do >nothing. > >Also, with delete, if the dir doesn't exist a BuildException is thrown. >With deltree there is no exception. > >BTW, thanks Tom (& Sam for committing it) for this patch. No more whining >from me!
You're very welcome! There is actually a pretty significant difference. <delete dir="myDir" includes="**/*" /> will delete all of the files in a big directory tree, but leave all of the directories and any files matched by the <defaultexcludes> intact, while <deltree dir="myDir"> will delete all files and all directories.
