It is possible to test your Ant build files, freeing you from the fear of flakey, untested code. Andy Balaam shows you how.
There are detailed notes here: http://www.artificialworlds.net/blog/2013/02/16/everybody-loves-build-xml-test-driven-ant/
The previous video explains how to write re-usable code in Ant: http://youtu.be/--g67FOCN6o