ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Support mutliple if and unless
Date Wed, 06 Aug 2008 12:44:35 GMT
> Can ant support multiple if and unless. I would rather not need to use
> ant-contrib for this.
> 
> These will infact look for a property called "x,y":
> <target name="my-target" if="x,y" unless="p,q">

Not directly. You would calculate a new property for that:

<condition property="xANDy">
    <available .../>
    <isset .../>
</concition>
<conction property="pORy">
    <or>
        <.../>
</condition>
<target ... if="xANDy" unless="pORy"/>


Jan

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


Mime
View raw message