I want to set a path variable cp to one of two values depending on the value of an property.
E.g. the following is what I'm trying to achieve, but I'm not sure about how to get it working 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>