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 06:43:02 GMT
Just an idea ...

<property name="includes" value="these;files;must;be;present"/>
<property name="includes.length" value="5"/>
<property name="dir" value="dir"/>

<condition propery="all-files-present">
    <length length="${includes.length}">
        <fileset id="fs" dir="${dir}" includes="${includes}"/>
    </length>
</condition>



Jan

>-----Ursprüngliche Nachricht-----
>Von: Shankar S [mailto:shanki@gmail.com] 
>Gesendet: Mittwoch, 14. März 2007 01:59
>An: user@ant.apache.org
>Betreff: 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


Mime
View raw message