On a Linux server, how does one install Apache ant?

Source: Internet
Author: User

Friends,
What isApache ant?
Apache ant is an automatic build software tool. It is similar to make, but its implementation is Java. Its operation requires the Java platform and is most suitable for building Java projects.
To install Apache ant on a Linux server, follow these steps:
Log on to the server over SSH:
========================================================== ================================

1.Download the installation package:

 
Wget http://apache.mirrors.tds.net/ant/binaries/apache-ant-1.8.1-bin.tar.gz

2.Extract:

 
Tar-xzvf apache-ant-1.8.1-bin.tar.gz

3.Switch to the extract directory:

Cd apache-ant-1.8.1

4.Copy:

 
CP-ARP */usr/local/ant

5.Path settings:

 
Echo 'export Path = $ path:/usr/local/ANT/bin'>/etc/profile

6.Ant_home settings:

 
Echo 'export ant_home =/usr/local/ant'>/etc/profile

7.Set the path for this Login:

 
Export Path = $ path:/usr/local/ANT/bin

8.Set this login ant_home:

 
Export ant_home =/usr/local/ant

========================================================== ================================
Now you can run ant-V or ant -- version to verify whether your ant has been installed?
In this case, try :)
Original article: http://kmaiti.blogspot.com/2010/08/how-to-install-apache-ant-on-linux.html.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.