Tuesday, 27 February 2018

How to install Apaceh ant in linux

What is Apache Ant?

ANT stands for Another Neat Tool. It's an open source tool for automating java program build process. Ant's build files are written in XML and they take advantage of being open standard, portable and easy to understand.

It simplify the developers works like compiling the code, packaging the binaries, deploying the binaries to the test server, testing the changes and copying the code from one location to another to simply automate it.

Now we are going to see how to install it.

Step 1

Download the package that you are required from mentioned link below.

 https://archive.apache.org/dist/ant/binaries/

Step 2

Extract the package to required location.

cd /opt

tar xzf apache-ant-x.x.x-bin.tar.gz

now rename the directory 

mv apache-ant-x.x.x ant

Step 3

Setup HOME directory in environment 

sh -c 'echo ANT_HOME=/opt/ant >> /etc/environment'

now link the binary 

ln -s /opt/ant/bin/ant /usr/bin/ant

Now check the ant version with below command

ant -version

sample example above command result

 

Note Java is need to installed o this server.
 

No comments:

Post a Comment

Permanent hostname setup for RHEL7

Step 1 Set the host name on NMTUI tool like following nmtui set host name   then save and exit Step 2 add the following l...