Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 65607 invoked by uid 500); 16 Aug 2001 13:56:34 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 65598 invoked from network); 16 Aug 2001 13:56:34 -0000 Message-ID: <010001c1265a$b520eab0$45001e0a@finanza.bancaintesa.it> From: "Stefano Mancarella" To: References: Subject: Re: Problem with the Delete task Date: Thu, 16 Aug 2001 15:52:26 +0200 MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.3018.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 X-MIMETrack: Itemize by SMTP Server on NIN0100G3/Servers/ISS/IT(Release 5.0.8 |June 18, 2001) at 16/08/2001 03:54:13 PM, Serialize by Router on NIN0100G3/Servers/ISS/IT(Release 5.0.8 |June 18, 2001) at 16/08/2001 03:54:41 PM Content-Type: multipart/mixed; boundary="----=_NextPart_000_00FD_01C1266B.72547BA0" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N ------=_NextPart_000_00FD_01C1266B.72547BA0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="iso-8859-1" > > Anyway, what is the expected behavior? > I'm not sure what it has been to begin with, but I think somewhere > between 1.3 and 1.4 we've changed some code and this change came out > as a side effect. I remember that we talked about the side effect and > concluded it would be the correct behavior anyway. Hmm, I understand. So now there's no difference between doing: and Right? Anyway I've found a way to accomplish the old behavior: This actually deletes all the contents of "somedir" but doesn't remove "somedir" itself. Perhaps the documentation could be changed accordingly... I've attached a patch to do so. ------=_NextPart_000_00FD_01C1266B.72547BA0 Content-Type: text/plain; name="patch.txt" Content-Disposition: attachment; filename="patch.txt" Content-Transfer-Encoding: quoted-printable --- delete.html.orig Thu Aug 09 22:04:48 2001 +++ delete.html Thu Aug 16 15:47:31 2001 @@ -109,7 +109,7 @@

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

  <delete includeEmptyDirs=3D"true" >
-    <fileset dir=3D"build" />
+    <fileset dir=3D"build" includes=3D"*/**" />
   </delete>
 

deletes all files and subdirectories of build, but not ------=_NextPart_000_00FD_01C1266B.72547BA0--