Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 71422 invoked from network); 27 Jul 2005 17:41:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Jul 2005 17:41:20 -0000 Received: (qmail 87793 invoked by uid 500); 27 Jul 2005 17:41:16 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 86887 invoked by uid 500); 27 Jul 2005 17:41:14 -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 86873 invoked by uid 99); 27 Jul 2005 17:41:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2005 10:41:13 -0700 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 [206.190.49.22] (HELO web52912.mail.yahoo.com) (206.190.49.22) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 27 Jul 2005 10:41:07 -0700 Received: (qmail 75071 invoked by uid 60001); 27 Jul 2005 17:41:11 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=gD/PIbVLEAEiwlYiO1GUCl5HxdU2HT+rvYaY58nIY3DDVkm9DmhG1wDnQFtjxSF2NtPTkyBXbr4qUJafpSRx7NGeVLvhX/aq0yUBofybWRbTL4WqOJvqpHAKhxgtKzOqTmuFqHPkyYosmjch+aA2bFdDF+be51fqcGjH2Ec4qtc= ; Message-ID: <20050727174111.75069.qmail@web52912.mail.yahoo.com> Received: from [66.28.87.10] by web52912.mail.yahoo.com via HTTP; Wed, 27 Jul 2005 10:41:11 PDT Date: Wed, 27 Jul 2005 10:41:11 -0700 (PDT) From: Ivan Ivanov Subject: Re: Test for empty folder? To: Ant Users List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello, the following script sets a property depending whether a given folder is empty or not: $${emptyprop} is ${emptyprop} $${notemptyprop} is ${notemptyprop} You might want to isolate the above code in a for easier reusing. Note that this is pure ant solution. You can easily do the check as well using with javascript for example. HTH Ivan --- Michael Owen wrote: > Hi, > > How do can test if a folder is empty? > > Mike > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > For additional commands, e-mail: > user-help@ant.apache.org > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org