ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: HOWTO: delete files older then ...
Date Wed, 23 May 2001 19:39:40 GMT
--- Jay Glanville <dickon@nortelnetworks.com> wrote:
> How do I delete a file that's older then, either a specific date, or x
> days ago, or something like that?

You could do an <exec> with 'find', put the results out to a file, then
use that as the includesFile for <delete> (but it wouldn't be useable on
Win* boxes). Or you could look into using the "culler" stuff that David
Rees submitted awhile back:
  http://marc.theaimsgroup.com/?l=ant-dev&m=98540878923987&w=2

Diane



=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Mime
View raw message