Unlike the JDK deployment, Ant is unpacked using tar rather than installed using rpm.
Point your browser to http://jakarta.apache.org/builds/jakarta-ant/release/v1.4.1/bin/ and select the binary tar.gz file. Save the file to /tmp.
As root, cd to /usr/local (or another location where you want to deploy packages such as Ant) and then run this command:
[root@linux local]# gunzip -c /tmp/jakarta-ant-1.4.1-bin.tar.gz | tar xf -
This creates the directory /usr/local/jakarta-ant-1.4.1.
Create the file /etc/profile.d/ant.sh as root with the following content:
PATH="$PATH:/usr/local/jakarta-ant-1.4.1/bin" ANT_HOME=/usr/local/jakarta-ant-1.4.1/ export ...