Hey,
For the first time i tried working with Ant on Mac, so thought of sharing some stuff..
1) Firstly ant is available by default with Mac.
2) Now lets know the current version
admin$ ant -version
Apache Ant(TM) version 1.8.1 compiled on April 29 2014
3) Wanna update to latest
Download link : http://ant.apache.org/bindownload.cgi
4) Create a local directory in usr if not exists
admin$ sudo mkdir -p /usr/local
5) Copy the downloaded folder to the newly created usr/local folder
admin$ sudo cp -rf apache-ant-1.9.4 /usr/local/apache-ant
6) Set global variable PATH
admin$ export PATH=/usr/local/apache-ant/bin:"$PATH"
7) Echo global variable PATH
admin$ echo 'export PATH=/usr/local/apache-ant/bin:"$PATH"' >> ~/.profile
8) Now lets know the updated version
admin$ ant -version
Apache Ant(TM) version 1.9.4 compiled on April 29 2014
Enjoy :)
No comments:
Post a Comment