ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Lévy-Lambert <>
Subject AW: Check whether a fileset exist
Date Thu, 25 Sep 2003 19:40:15 GMT
I guess you mean you want to check whether a fileset contains at least one
file. You can do this by using <pathconvert/> to transform create a property
containing the files present in your fileset. Then you can use the
<condition/> task to compare the property obtained with the empty string.
Look at the condition task docu in the manual.

<project name="pathconvert">
<fileset dir="c:/dev/asf/ant" id="myfileset">
<include name="**/*.xyz"/>
<pathconvert refid="myfileset" targetos="unix" property="my.fileset"/>
<echo message="my.fileset is ${my.fileset}"/>



-----Urspr√ľngliche Nachricht-----
Von: Oliver Wulff []
Gesendet: Donnerstag, 25. September 2003 21:04
Betreff: Check whether a fileset exist


Can I check whether a fileset exist?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message