ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Conditions
Date Wed, 04 Feb 2004 22:07:14 GMT
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


Mime
View raw message