This should make it work:
> export PATH=$PATH:/usr/local/ant/apache-ant-1.7.1/bin
Make sure you update this PATH in your .bash_profile file or in any of the startup scripts under /etc/profile.d
This should make it work:
> export PATH=$PATH:/usr/local/ant/apache-ant-1.7.1/bin
Make sure you update this PATH in your .bash_profile file or in any of the startup scripts under /etc/profile.d