ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cvsusr <sp...@rediffmail.com>
Subject Re: Alternative for <available> taks to check a pattern of file existence
Date Thu, 29 Oct 2009 11:30:57 GMT

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 <spers@rediffmail.com> 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 <available> 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.
>>
> 
> One option would be to use an appropriate <fileset> and loop over it
> with <for>, but <for> requires ant-contrib.
> 
> -- 
> 
> Francis Galiegue
> ONE2TEAM
> Ingénieur système
> Mob : +33 (0) 683 877 875
> Tel : +33 (0) 178 945 552
> fge@one2team.com
> 40 avenue Raymond Poincaré
> 75116 Paris
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Alternative-for-%3Cavailable%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


Mime
View raw message