To install Apache Ant on Cent-OS follow these steps:
# yum install ant
# yum install xml-commons-apis
You should see something like this:
# ant -version
Apache Ant version 1.6.5 compiled on January 6 2007
Here is a good tutorial to get started with ant:
http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html