Try this: --DD
<condition property="build.failed">
<or>
<available file="${dirA}" type="dir" />
<available file="${dirB}" type="dir" />
</or>
</condition>
-----Original Message-----
From: Kevin G. Crocker [mailto:KGC@rsssolutions.com]
I want to fail a build if one directory OR another Directory is found.
I am using:
<condition property="build.failed">
<and>
<available file="${dirA}" type="dir"/>
<or>
<available file="${dirB}" type="dir"/>
</or>
</and>
</condition>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
|