How to set an Ant property only if it is unset

You simply can set the property with the property-task. If the property is already set, the value is unchanged, because properties are immutable.

But you can also include ‘not’ in your condition:

<condition property="core.bin" value="../bin">
   <not>  
      <isset property="core.bin"/>
   </not>
</condition>

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)