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
resource.
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.">
    <condition>
        <not>
            <resourcecount count="2">
                <fileset id="fs" dir="." includes="one.txt,two.txt"/>
            </resourcecount>
        </not>
    </condition>
</fail>

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



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.

Thx. 

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


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to