According to the documentation isset clause "Test whether a given property has been set in this project". I don't understand wheter isset returns true or false when a property is set In the below code snippet java.pass.home is set to somval when env.JAVA_HOME is not set .
<condition property="java.passed.home" value="somval">
<isset property="${env.JAVA_HOME}"/>
</condition>
This snippet works for my requirement but i think the correct code snippet should be something like this as i want to set the property when another property is not available
<condition property="java.passed.home" value="somval">
<not>
<isset property="${env.JAVA_HOME}"/>
</not>
</condition>
Can some one please clarify this? Thanks in advance
The code snippet was right but the property should be mentioned with just name without enclosing it with {}
<isset property="${env.JAVA_HOME}"/>
It should be
<isset property="env.JAVA_HOME"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With