Feb 25
Jon Aquino has started a new craze. The last two JavaOne’s have had Vodafone telling us “write video games for mobile phones and you will make millions!!!”.
Maybe this year we will be told to write Ant video games! :)
Fair play to Jon for showing that this is possible. The one, practical, take away point is that you can check out the new macrodef
functionality in Ant 1.6, and the Ant Contrib library which gives you the if/then/else/for/....
tags and more.
<macrodef name="check-crash"> <sequential> <if><islessthan arg1="${left-clearance}" arg2="0"/> <then><die/></then></if> <if><islessthan arg1="${right-clearance}" arg2="0"/> <then><die/></then></if> </sequential> </macrodef>