<if>
<bool>
<isgreaterthan arg1="${abc}" arg2="${xyz}"/>
</bool>
</if>
when i am running the code, it's showing the error if doesn't support the nested "bool" element.
is there any other option is there at the place of bool which supported by if
You can use 'bool' tag within 'if' provided you use taskdef for "if" using the classname="ise.antelope.tasks.IfTask"
Eg:
Ant Flaka is a new Ant Plugin that provides an innovative Expression Language which makes many scripting part obsolete. Beside that Flaka provides conditional and repetitive control structures like when, unless, while, for, choose, switch .. Your if statement with Flaka would look like =
please see the comprehensive Flaka Manual for further details !
The example works in antcontrib-1.0b2 but not the latest antcontrib-1.0b3
Found this after hitting a similar problem after an update
It looks like you're attempting to use the Antelope
if
task, as it (unlike the ant-contribif
) supports a nestedbool
element. But, the error message is indicative of the task not being defined correctly.Check that you have the Antelope jar, and a suitable taskdef in your buildfile. I use this:
For details of what the task supports, see the documentation linked to above.