I have an ant
task like so:
<target name="mathWala" description="Some sample math operations.">
<if>
<islessthan arg1="${op1}" arg2="${limit}"/>
<then>
<echo>${op1} is less than ${limit}</echo>
<antcall target="adder"></antcall>
</then>
</if>
</target>
<target name="adder">
<math result="result" operand1="${op1}" operation="+" operand2="1" datatype="int"/>
<echo>result = ${result}</echo>
</target>
When I run the above task, the error I get is:
if does'nt support the nested "islessthan" element.
Can I use the <if>
and <islessthan>
statements together? I have gone through the documentation and did not find anything to suggest otherwise.