ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Checking for files in a directory
Date Wed, 14 Mar 2007 11:34:43 GMT
<fileset> only catches available files ...


Jan 

>-----Ursprüngliche Nachricht-----
>Von: Shankar S [mailto:shanki@gmail.com] 
>Gesendet: Mittwoch, 14. März 2007 02:45
>An: Ant Users List
>Betreff: Re: Checking for files in a directory
>
>OK let me put it this way .. intead of having 50 <include 
>name="blahblah" >
>for 50 files which makes my build file look ugly .. I want 
>something like
>define the list of files in a property file and check something like
><available> <filepath dir="blahblah"> check if the directory 
>contains all
>the files
>
>-Shankar
>
>
>On 3/14/07, James Oltmans <joltmans@bolosystems.com> wrote:
>>
>> Have you tried something like the following?
>> <available>
>>   <path>
>>      <fileset dir="wherever">
>>        <include name="**/filename1"/>
>>        <include name="**/filename2"/>
>>         ...
>>      </fileset>
>>   </path>
>> </available>
>>
>> -----Original Message-----
>> From: Shankar S [mailto:shanki@gmail.com]
>> Sent: Tuesday, March 13, 2007 6:59 PM
>> To: user@ant.apache.org
>> Subject: Checking for files in a directory
>>
>> Hi,
>>
>> Is there a way in ANT where I could check if a list of files is
>> available/present in a directory instead of having a long list of
>> <available>s under <condition>?
>> Any help will be much appreciated.
>>
>> -Shankar
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message