I need to translate this statement to
ant task -
If a particular variable "test_var" has the value "X", set the value of another variable called "my_var" to "ABC". If its not "X", then assign "DEF" to "my_var".
I've tried something like this -
<property name="my_var" value="DEF" /> (by default)
the above is a global variable.
<target name"init">
<condition property="check">
<contains string="$test_var" substring="X" casesensitive="no"/>
</condition>
After this, I'm stuck! Depending on the value of "check", I should set my_var to some value. And I donno how to do it.
Please help me. This is urgent to me.