Ant conditional unless possible? -
i'd target execute if either of 2 conditions met. can have 2 unless evaluated 1 target? essentially, i'd target not run if either of these true:
unless="product.is.x" or "product.is.y"
sorry if i'm going in wrong way, i'm new ant.
read targets mention how it:
a target has ability perform execution if (or unless) property has been set.
in case, can like:
<condition property="mytarget.condition"> <or> <equals arg1="${product.is.x}" arg2="true" /> <equals arg1="${product.is.y}" arg2="true" /> </or> </condition> ... <target name="mytarget" unless="mytarget.condition"> ...
Comments
Post a Comment