ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Dimock <>
Subject RE: deprecate deltree ?
Date Sat, 17 Jun 2000 00:30:24 GMT
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
>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.

View raw message