> ><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.
All of the above should be documented.. I still think that the existance of two ways to delete a dir is generally confusing. -Ramosa
