ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edwin Castro <0ptikGh...@gmx.us>
Subject Re: Is it possible to get "location semantics" with <condition/>
Date Wed, 11 Dec 2013 23:52:25 GMT
On 12/11/13, 3:07 PM, Cyril Sagan wrote:
>     <!-- not equivalent to above on windows, ${dir}
>          will have both forward and backward slashes -->
>     <condition property="dir.fails"
>                value="${basedir}/true/option"
>                else="${basedir}/false/demo/path">
>         <istrue value="${some.property}" />
>     </condition>

Could you spare a "temporary" property? Something like

<condition property="dir.fails.tmp"
           value="${basedir}/true/option"
           else="${basedir}/false/demo/path">
    <istrue value="${some.property}"/>
</condition>

<property name="dir.fails" location="${dir.fails.tmp}"/>

<echo>dir.fails = ${dir.fails}</echo>

--
Edwin


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


Mime
View raw message