Re: Alternative for taks to check a pattern of file existence

2009-10-29 Thread Stefan Bodewig
On 2009-10-29, cvsusr wrote: > I need to check for existence of files with some extension say *.txt in a > folder and if present execute a target.. Use the condition task with a resourcecount condition to ste a property and make your target use that property. Stefan ---

Re: Alternative for taks to check a pattern of file existence

2009-10-29 Thread Matt Benson
rmine a fileset's emptiness. -Matt --- On Thu, 10/29/09, cvsusr wrote: > From: cvsusr > Subject: Alternative for taks to check a pattern of file existence > To: user@ant.apache.org > Date: Thursday, October 29, 2009, 6:00 AM > > Hi, > > I need to check for exis

RE: Alternative for taks to check a pattern of file existence

2009-10-29 Thread cvsusr
: user@ant.apache.org > Subject: Re: Alternative for taks to check a pattern of file > existence > > /* > > > > > > > file list::: @{file} > > > > > */ > > using for - which requires antcontrib also - when all you want >

RE: Alternative for taks to check a pattern of file existence

2009-10-29 Thread Rebhan, Gilbert
-Original Message- From: cvsusr [mailto:sp...@rediffmail.com] Sent: Thursday, October 29, 2009 3:34 PM To: user@ant.apache.org Subject: Re: Alternative for taks to check a pattern of file existence /* file list::: @{file} */ using for - which requires antcontrib

Re: Alternative for taks to check a pattern of file existence

2009-10-29 Thread cvsusr
solution1: ... solution2 One option would be to use an appropriate and loop over it with , but requires ant-contrib. Hi Francis Galiegue & Gilbert , Thanks a lot for replying. I got it done taking inputs from all your comments. Below is the code that is working fine.

Re: Alternative for taks to check a pattern of file existence

2009-10-29 Thread Francis GALIEGUE
On Thu, Oct 29, 2009 at 13:00, cvsusr wrote: > > I tried this.. this is printing the *.txt file that exist in the current > folder > > >   >     >   > > file list::: @{file} > > > > > Now i need to check if the file exist then perform the target..  Do i need > to use condition for this?? >

RE: Alternative for taks to check a pattern of file existence

2009-10-29 Thread Rebhan, Gilbert
@ant.apache.org Subject: Alternative for taks to check a pattern of file existence /* 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

RE: Alternative for taks to check a pattern of file existence

2009-10-29 Thread Rebhan, Gilbert
-Original Message- From: cvsusr [mailto:sp...@rediffmail.com] Sent: Thursday, October 29, 2009 12:00 PM To: user@ant.apache.org Subject: Alternative for taks to check a pattern of file existence /* Hi, I need to check for existence of files with some extension say *.txt in a folder

Re: Alternative for taks to check a pattern of file existence

2009-10-29 Thread cvsusr
I tried this.. this is printing the *.txt file that exist in the current folder file list::: @{file} Now i need to check if the file exist then perform the target.. Do i need to use condition for this?? Thanks Sri Francis Galiegue-4 wrote: > > On Thu, Oct 29, 2009 at 12:00,

Re: Alternative for taks to check a pattern of file existence

2009-10-29 Thread cvsusr
Hi, Thanks for your reply.. I know to use Fileset.. but how to check with forloop.. if possible, Can you please give me an example? Im new to this concept and hence requesting your help.. Thanks Francis Galiegue-4 wrote: > > On Thu, Oct 29, 2009 at 12:00, cvsusr wrote: >> >> Hi, >> >> I nee

Re: Alternative for taks to check a pattern of file existence

2009-10-29 Thread Francis GALIEGUE
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 che

Alternative for taks to check a pattern of file existence

2009-10-29 Thread cvsusr
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 t