I want to set the cp path variable to one of two values depending on the value of the property.
eg. the next thing I'm trying to achieve, but I'm not sure how to make it work properly ...
<if>
<contains string="${jboss.home}" substring="jboss-4.2.3.GA"></contains>
<then>
<echo message="Using JBoss 4.2.3 classpath"/>
<path id="cp">
...
</path>
</then>
<else>
<echo message="Using JBoss 4.0.5 classpath"/>
<path id="cp">
...
</path>
</else>
</if>
source
share