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
---
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
: 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
>
-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
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.
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??
>
@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
-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
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,
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
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
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
12 matches
Mail list logo