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

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

node.js - How to abort query on demand using Neo4j drivers -