Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 56346 invoked from network); 22 Jun 2004 16:09:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 22 Jun 2004 16:09:52 -0000 Received: (qmail 84898 invoked by uid 500); 22 Jun 2004 15:23:27 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 30809 invoked by uid 500); 22 Jun 2004 15:13:06 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 50615 invoked by uid 99); 22 Jun 2004 14:58:00 -0000 Received: from [213.94.219.177] (HELO corvil.com) (213.94.219.177) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 22 Jun 2004 07:58:00 -0700 Received: from [172.18.1.171] (angel.local.corvil.com [172.18.1.171]) by corvil.com (8.12.9/8.12.5) with ESMTP id i5MEvnOC044929 for ; Tue, 22 Jun 2004 15:57:50 +0100 (IST) (envelope-from peter.reilly@corvil.com) Message-ID: <40D8490F.7060608@corvil.com> Date: Tue, 22 Jun 2004 15:58:23 +0100 From: Peter Reilly User-Agent: Mozilla Thunderbird 0.6 (X11/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: Deleting only the contents of a directory References: <20040622092858.69661.qmail@web52910.mail.yahoo.com> In-Reply-To: <20040622092858.69661.qmail@web52910.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Good idea, It will be in the next ant release. Peter Ivan Ivanov wrote: >Thanks Peter, > >Actually I finally guessed it and I did it late at >home. I think also that, if it was hard for me it >might be hard for someone else to, so I am submitting >a patch to the docs of the task. The patch is >done against latest CVS HEAD revision and adds at the >bottom of the delete.html the snippet > > > > > >deletes all files and subdirectories of build, without >build itself. > >Thank you very much again for your help. > >Regards Ivan > >P.S. I hope the patch will be accepted, so that I do >not memorize the above snippet. I remember I wrote >some docs about s and sent it, but it never >appeared in the ant official docs. > >--- Peter Reilly wrote: > > >>Opps, >>that should be: >> >> >> >> >> >> > > > >__________________________________ >Do you Yahoo!? >Yahoo! Mail - 50x more storage than other providers! >http://promotions.yahoo.com/new_mail > >------------------------------------------------------------------------ > >161a162,167 > > >>
  <delete includeemptydirs="true">
>>    <fileset dir="build" includes="**/*"/>
>>  </delete>
>>
>>

deletes all files and subdirectories of build, without >>build itself.

>> >> > > > >------------------------------------------------------------------------ > >--------------------------------------------------------------------- >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