Call Apache Ant from Java

This is a nice trick. Particularly since Ant provides some pretty nice tools for XML manipulation.