ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jay Glanville" <>
Subject does and already have platform specific code? (RE: Why can't <del ete> just simply delete the directory?)
Date Fri, 08 Dec 2000 12:59:09 GMT
Does ant already have platform-specific code?  I've looked through the code
and couldn't find a centralized and consistent way of it being done.

The reason I'm asking is that if users want a small tweak in performance,
AND there already is a structure for platform specific-ness, then I'd be
willing to try to improve the performance of the <delete> task by using the
platform specific equivalents for directories.  (e.g.: deltree on win, rm -r
on UNIX, and defaulting to File.delete()).

Just a thought.

-----Original Message-----
From: Stefan Bodewig []
Sent: Friday, December 08, 2000 3:11 AM
Subject: Re: Why can't <delete> just simply delete the directory?

Jay Glanville <> wrote:

> The task performs beautifully, but not efficiently.  Before it
> deletes the directory, it deletes all the files within it.

File.delete will not delete a directory unless it's empty, sorry.


View raw message