Hey I have been asked by some to put a short snippet on how to install Ant on Linux Box. Well the steps are simple.
Step 1 : Download the Apache Ant e.g (1.7.1) binary distribution from Apache archive from http://archive.apache.org/dist/ant/binaries/
$ wget http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.1-bin.tar.gz
Step 2 : Uncompress the binary distribution and copy it to the /usr/local directory:
$ tar -zxf apache-ant-1.7.1-bin.tar.gz $ sudo mv apache-ant-1.7.1 /usr/local
Step 3 : Create symbolic link in /usr/bin:
$ sudo ln -s /usr/local/apache-ant-1.7.1/bin/ant /usr/bin/ant
Step 4 : Create ENVIRONMENT Variables
Open up ~/.bashrc and add the below lines
export ANT_HOME=/usr/bin/ant export ANT_OPTS="-XX:MaxPermSize=900m -Xmx900m"
Step 5 : Append ANT_HOME to PATH
Open up ~/.bashrc and add/append
PATH=$PATH:$ANT_HOME/bin export PATH="$PATH"
And that’s it you are done! Save the file.
Run
$ ant --version
You should now see ANT version! GO ahead and build your Java Projects :) Cheers.
Pretty! This was an incredibly wonderful article. Many thanks for providing this information.
I truly appreciate this post. I have been looking all over for this! Thank goodness I found it on Bing. You’ve made my day! Thanks again!
I must voice my affection for your kindness for all those that should have assistance with this theme. Your special dedication to getting the solution along was rather interesting and has specifically allowed professionals just like me to achieve their aims. Your own insightful useful information can mean so much to me and additionally to my office colleagues. Thank you; from each one of us
Please make sure that you have setter method current_user in application_controller.rb
Note :
Hi,
I have received overwhleming response for this Project, currently I am moving to Rails 3.2.11 and Ruby 1.9.3 for this Project with Integration of MySQL and MongoDB, so the current project progress is stopped, will soon come up with the new codebase! Stay tuned, if you find it interesting!
Regard
Ray
Thanks ! This is very helpful for me !
This was an incredibly wonderful article !
But for knowing version : ant -version !
Happy !
Amazing! Its genuinely remarkable article, I have got much clear
idra about from this article.
Valuable information. Fortunate me I found your site unintentionally, and I’m stunned why this twist of fate didn’t happened
earlier! I bookmarked it.