On Fri, Aug 21, 2009 at 9:46 AM, Dale Anson<dan...@grafidog.com> wrote:
> Part of the problem is the way delete is
> implemented in Java itself, that is, a non-empty directory cannot be deleted
> with java.io.File.delete(), so the delete task is required to traverse the
> tree and delete files from the bottom up.

Well, isn't that what the rm -r command does as well anyway?

It just happens to be implemented in a faster manner I think.

Deleting an entire directory w/o any pattern or selector could likely
be implemented in a lighter way by skipping all the extra processing
needed when more granular control over what's to be deleted. Sounds
like the deprecated <deltree> task to me. Don't know why it was
deprecated in fact. --DD

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org

Reply via email to