Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 26802 invoked from network); 23 Nov 2004 17:18:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 23 Nov 2004 17:18:24 -0000 Received: (qmail 640 invoked by uid 500); 23 Nov 2004 17:17:48 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 559 invoked by uid 500); 23 Nov 2004 17:17:47 -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 498 invoked by uid 99); 23 Nov 2004 17:17:47 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of hoju@visi.com designates 208.42.156.2 as permitted sender) Received: from [208.42.156.2] (HELO conn.mc.mpls.visi.com) (208.42.156.2) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 23 Nov 2004 09:17:43 -0800 Received: from mahes.visi.com (mahes-int.visi.com [208.42.77.150]) by conn.mc.mpls.visi.com (Postfix) with ESMTP id 5C23983E4 for ; Tue, 23 Nov 2004 10:52:59 -0600 (CST) Received: from mahes.visi.com (localhost [127.0.0.1]) by mahes.visi.com (8.12.9/8.12.5) with ESMTP id iANGqxIY033379 for ; Tue, 23 Nov 2004 10:52:59 -0600 (CST) (envelope-from hoju@visi.com) Received: (from www@localhost) by mahes.visi.com (8.12.9/8.12.5/Submit) id iANGqwA8033378 for user@ant.apache.org; Tue, 23 Nov 2004 10:52:58 -0600 (CST) X-Authentication-Warning: mahes.visi.com: www set sender to hoju@visi.com using -f Received: from 162.136.192.1 ([162.136.192.1]) by my.visi.com (IMP) with HTTP for ; Tue, 23 Nov 2004 10:52:58 -0600 Message-ID: <1101228778.41a36aeac8b0a@my.visi.com> Date: Tue, 23 Nov 2004 10:52:58 -0600 From: Jacob Kjome To: Ant Users List Subject: RE: newbie not removing my empty directory? References: <12C89F7C939CDB45B073511113A9BFF5224372@alpha.quadrus.com> In-Reply-To: <12C89F7C939CDB45B073511113A9BFF5224372@alpha.quadrus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.5 X-Originating-IP: 162.136.192.1 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Are you just trying to do this?... In that case above, the ${targetdir} and all its contents will be removed if the items in the "excludes" attribute don't exist. If they do exist, then the ${targetdir} will stay along with those excludes. Jake Quoting Vadim Kazakov : > I don't think so. Not completely positive though, can't seem to find any > selectors that you can use. > > -----Original Message----- > From: Eric Lubin [mailto:elubin@yahoo.com] > Sent: November 22, 2004 11:50 AM > To: Ant Users List > Subject: RE: newbie not removing my empty directory? > > Is there a way to specify a delete command that might run after this > one, that might hit NO files, > but that could remove my empty directories? ie, a delete that ONLY > deletes empty subdirs? > > Eric > > > --- Vadim Kazakov wrote: > > > Exactly, since the directory doesn't match the filter, it won't get > > deleted. > > > > -----Original Message----- > > From: Eric Lubin [mailto:elubin@yahoo.com] > > Sent: November 22, 2004 11:24 AM > > To: Ant Users List > > Subject: RE: newbie not removing my empty directory? > > > > well, I would have to specify which directories are going to be EMPTY > > when I'm done with the > > delete? How would I know that? > > > > No, there are no class files left in the directory when the operation > is > > done. The directory is > > empty, but doesn't get removed. > > > > Thanks, Eric > > > > > > > > --- Vadim Kazakov wrote: > > > > > Because you're not specifying the directory in the include tags so > it > > > only deletes .java and .class files unless the .class files are in a > > > subdirectory xyz/test1. > > > > > > -----Original Message----- > > > From: Eric Lubin [mailto:elubin@yahoo.com] > > > Sent: November 19, 2004 2:07 PM > > > To: user@ant.apache.org > > > Subject: newbie not removing my empty directory? > > > > > > Based on the directory structure and files listed at the bottom, why > > > doesn't the last delete > > > remove the test2_sub1 directory? > > > > > > Thanks, Eric > > > > > > > > > simple example build file > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ----------------------------------------------------------------------- > > > > > > root > > > |-com > > > |-xyz > > > |-test1 (with file a.java and a.class) > > > |-test1_sub1 (with file b.java and b.class) > > > |-test2 (with file c.java and c.class) > > > |-test2_sub1 (with file d.java and d.class) > > > |-test2_sub2 (with file e.txt and f.txt) > > > > > > > > > > > > > > > > > > > > > __________________________________ > > > Do you Yahoo!? > > > The all-new My Yahoo! - Get yours free! > > > http://my.yahoo.com > > > > > > > > > > > > > --------------------------------------------------------------------- > > > 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 > > > > > > > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > Meet the all-new My Yahoo! - Try it today! > > http://my.yahoo.com > > > > > > > > --------------------------------------------------------------------- > > 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 > > > > > > > > > __________________________________ > Do you Yahoo!? > Meet the all-new My Yahoo! - Try it today! > http://my.yahoo.com > > > > --------------------------------------------------------------------- > 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