How can I find out which of two numeric properties is the greatest?
Here\'s how to check wheather two are equal:
If you don't want to (or cannot) use the Ant-Contrib libraries, you can define a compare task using javascript:
compare
val2 ? 1 : (val1 < val2 ? -1 : 0)); project.setProperty(attributes.get("result"), result); ]]>
You can use it like this:
...