Note: Requiers ANT 1.7+
<target name="isdirEmpty">
<fileset id="fileset.test" dir="c:/test">
<include name="*.*"/>
</fileset>
<fail message="File not found">
<condition>
<resourcecount refid="fileset.test"
when="less"
count="1" >
</resourcecount>
</condition>
</fail>
</target>
Aucun commentaire:
Enregistrer un commentaire