Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 42788 invoked from network); 6 Jan 2006 20:00:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Jan 2006 20:00:33 -0000 Received: (qmail 66551 invoked by uid 500); 6 Jan 2006 20:00:09 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 66499 invoked by uid 500); 6 Jan 2006 20:00:09 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 66466 invoked by uid 99); 6 Jan 2006 20:00:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jan 2006 12:00:09 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [208.200.221.8] (HELO mail.mdli.com) (208.200.221.8) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jan 2006 12:00:08 -0800 Received: from mdlsloexc1001r.mdli.com (mdlsloexc1001r.mdli.com [145.36.242.148]) by mail.mdli.com (Postfix) with ESMTP id 172DBB5E16 for ; Fri, 6 Jan 2006 11:59:47 -0800 (PST) Received: from [145.36.245.225] (alexeys-xpsp2.mdli.com [145.36.245.225]) by mdlsloexc1001r.mdli.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id CLX9SB5S; Fri, 6 Jan 2006 11:59:46 -0800 Message-ID: <43BECC13.4010405@mdl.com> Date: Fri, 06 Jan 2006 11:59:15 -0800 X-Sybari-Trust: e36bb7c7 7b91c9d5 aed51531 0000093d From: "Alexey N. Solofnenko" User-Agent: Thunderbird 1.5 (Windows/20060106) MIME-Version: 1.0 To: Ant Users List Subject: Re: delete task in Ant References: <369B1AC65F85B2479C266305ED32A0EC06FB56@NA1000EXM02.na.ds.monsanto.com> <6.2.3.4.2.20060106144730.03bfb790@mail.comcast.net> In-Reply-To: <6.2.3.4.2.20060106144730.03bfb790@mail.comcast.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N By default ANT ignores some files (CVS, backups,...). To make ANT see such files add defaultexcludes="false" into element (see http://ant.apache.org/manual/CoreTypes/fileset.html ). Default excludes list: http://ant.apache.org/manual/dirtasks.html#defaultexcludes . - Alexey. Ken Gentle wrote: > The leading "." in the filenames (".#Test.log.1.23") is what is > preventing this pattern from matching. That looks vaguely like an > editor backup file or diff/merge tool backup file pattern. > > If you're trying to delete files that are named more conventionally > (Test.log.1.23), you'll probably need two includes in the fileset, like: > > > > > > > > Don't forget the quotes around the attribute value (name="") - I'm > surprised you didn't get an error with the pattern as you have it below. > > Ken > > > At 13:42 2006-01-06, you wrote: >> I have a file(s) that get created in the build directory that I want to >> delete, so I used the delete task >> >> >> >> >> >> >> >> The files that get created are: >> .#Test.log.1.23 >> .#Test.log.1.24 >> >> Why does the ant task not recognize these files? Is there something >> wrong >> with the pattern that I have given it? >> >> Thank you for your help >> >> Ajay Dharna >> >> --------------------------------------------------------------------------------------------------------- >> >> This e-mail message may contain privileged and/or confidential >> information, and is intended to be received only by persons entitled >> to receive such information. If you have received this e-mail in >> error, please notify the sender immediately. Please delete it and all >> attachments from any servers, hard drives or any other media. Other >> use of this e-mail by you is strictly prohibited. >> >> >> All e-mails and attachments sent and received are subject to >> monitoring, reading and archival by Monsanto. The recipient of this >> e-mail is solely responsible for checking for the presence of >> "Viruses" or other "Malware". Monsanto accepts no liability for any >> damage caused by any such code transmitted by or accompanying this >> e-mail or any attachment. >> --------------------------------------------------------------------------------------------------------- >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >> For additional commands, e-mail: user-help@ant.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org