On Tue, 05 Sep 2006, Dirk Starke <dirk@starke-net.de> wrote:
> I would like to test whether or not a specified directory contains
> some files.
Apart from Jan's suggestion, which should work for Ant 1.6, Ant
1.7beta comes with a new <resourcecount> condition
<condition property="dir-is-not-empty?">
<resourcecount when="greater" length="0">
<fileset dir="..."/>
</resourcecount>
</condition>
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
|