ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jakob Ramskov" <cont...@ramosa.com>
Subject Re: deprecate deltree ?
Date Sat, 17 Jun 2000 03:02:16 GMT
> ><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


Mime
View raw message