Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 15593 invoked from network); 29 Oct 2009 11:31:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Oct 2009 11:31:29 -0000 Received: (qmail 98882 invoked by uid 500); 29 Oct 2009 11:31:28 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 98815 invoked by uid 500); 29 Oct 2009 11:31:27 -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 98805 invoked by uid 99); 29 Oct 2009 11:31:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Oct 2009 11:31:27 +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 (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Oct 2009 11:31:18 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1N3TDV-0007PP-Fn for user@ant.apache.org; Thu, 29 Oct 2009 04:30:57 -0700 Message-ID: <26111329.post@talk.nabble.com> Date: Thu, 29 Oct 2009 04:30:57 -0700 (PDT) From: cvsusr To: user@ant.apache.org Subject: Re: Alternative for taks to check a pattern of file existence In-Reply-To: <7c55bf80910290405s2fe43f24i1b7b048f358094e@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: spers@rediffmail.com References: <26110901.post@talk.nabble.com> <7c55bf80910290405s2fe43f24i1b7b048f358094e@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, Thanks for your reply.. I know to use Fileset.. but how to check with forloop.. if possible, Can yo= u please give me an example? Im new to this concept and hence requesting your help.. Thanks Francis Galiegue-4 wrote: >=20 > On Thu, Oct 29, 2009 at 12:00, cvsusr wrote: >> >> Hi, >> >> I need to check for existence of files with some extension say *.txt in = a >> folder and if present execute a target.. >> >> I found only task which checks for the existence of single >> file >> only when the name of the file known. I wanted to check whether *.txt is >> present or not.. if present execute a target.. >> >> Can anyone please help me.. >> >> Thanks in advance. >> >=20 > One option would be to use an appropriate and loop over it > with , but requires ant-contrib. >=20 > --=20 >=20 > Francis Galiegue > ONE2TEAM > Ing=C3=A9nieur syst=C3=A8me > Mob : +33 (0) 683 877 875 > Tel : +33 (0) 178 945 552 > fge@one2team.com > 40 avenue Raymond Poincar=C3=A9 > 75116 Paris >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org >=20 >=20 >=20 --=20 View this message in context: http://www.nabble.com/Alternative-for-%3Cavai= lable%3E-taks-to-check-a-pattern-of-file-existence-tp26110901p26111329.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org