ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lucas Albers" <>
Subject fail task if subdirectories do not exist.
Date Thu, 09 Apr 2009 21:35:13 GMT
How can I a fail task for a directory resource count?
I can see the syntax for failing if a file does not exists as part of a
I do not know the syntax to fail if a directory that is part of a resource
does not exist:

See sample code:

Item 1:
<fail message="Files are missing.">
            <resourcecount count="2">
                <fileset id="fs" dir="." includes="one.txt,two.txt"/>

Item 2:
<fail message="missing dir: bin"><condition><not><available file="bin"
<fail message="missing dir: chat"><condition><not><available file="chat"
<fail message="missing dir: client"><condition><not><available file="client"

How can I use a resource count to check for the existence of subdirectories?
I can see how to it it by defining each one, and I would prefer to check it
via a property value in a resourecount thingamabob.


I read the documentation but problem lies between keyboard and chair.

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

View raw message