Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 1438 invoked from network); 14 Jun 2000 20:06:49 -0000 Received: from postoffice2.mail.cornell.edu (132.236.56.10) by locus.apache.org with SMTP; 14 Jun 2000 20:06:49 -0000 Received: from pyro (pyro.cit.cornell.edu [128.253.57.45]) by postoffice2.mail.cornell.edu (8.9.3/8.9.3) with SMTP id QAA04547 for ; Wed, 14 Jun 2000 16:06:47 -0400 (EDT) Message-Id: <3.0.2.32.20000614160648.01367100@postoffice2.mail.cornell.edu> X-Sender: tad1@postoffice2.mail.cornell.edu X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.2 (32) -- [Cornell Modified] Date: Wed, 14 Jun 2000 16:06:48 -0400 To: ant-dev@jakarta.apache.org From: Tom Dimock Subject: Re: delete question In-Reply-To: <002901bfd63b$12a32700$7c5b36d4@noname> References: <27FF4FAEA8CDD211B97E00902745CBE2013D2CFC@seine.valicert.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N At 09:59 PM 06/14/2000 +0200, Jakob wrote: >Ofcourse it should be added to the core, it's a major limitation. > >Can't committers just contribute it? > >Do remember to add it to the documentation.. features that aren't documented >are no good. Easily done...

Deletefiles

Description

Deletes all files from the specified directory and its sub-directories.

It is possible to refine the set of files that are being deleted. This can be done with the includes, excludes and defaultexcludes attributes. With the includes attribute you specify the files you want to have included in the deletion process by using patterns. The exclude attribute is used to specify the files you want to have excluded from the deletion process. This is also done with patterns. And finally with the defaultexcludes attribute, you can specify whether you want to use default exclusions or not. See the section on directory based tasks, on how the inclusion/exclusion of files works, and how to write patterns. The patterns are relative to the deldir directory.

Parameters

Attribute Description Required
deldir The directory to delete files from. Yes
includes Comma separated list of patterns of files that must be deleted. All files are in the current directory and any sub-directories are deleted when omitted. No
excludes Comma separated list of patterns of files that must be excluded from the deletion list. No files (except default excludes) are excluded when omitted. No
defaultexcludes Indicates whether default excludes should be used or not ("yes"/"no"). Default excludes are used when omitted. No
verbose Show name of each deleted file ("true"/"false"). Default is "false" when omitted. No

Examples

  <deletefiles deldir="lib" />

deletes all files in the /lib directory.

  <deletefiles deldir="."
               include="**/*.bak"
  />

deletes all files with the extension ".bak" from the current directory and any sub-directories.

---------------------------------------------------------------------------- Tom Dimock ---- Cornell University ---- tad1@cornell.edu "There go my people. I must follow them, for I am their leader." M. Gandhi