An article I wrote (last summer) has finally been published in the February 2003 issue of JavaPro. It details how to write sophisticated custom Ant tasks by demonstrating how I built a custom Ant task to control IBM alphaWorks Robocode
The article is online at http://www.fawcette.com/javapro/2003_02/magazine/features/ehatcher/