Sunday, April 12, 2020

How to Install ANT(Build Tool) in CentOS machine

APACHE ANT
  • ANT stands for another neat tools
  • It is java based build tool from Apache Software Fundation
  • Ant uses build.xml file 
  • Ant was created by james duncan davidson
Ant- Build Files:
  • Ants build file is called build.xml should reside in base directory(base directory means where the source code will maintained) of the project
  • In build.xml or any xml file it start with an xml tag project name and target a single project can have multiple targets
  • There should be no blank lines or white spaces before the xml declaration
Ant Installation In CentOS Machine

Step 1: Update the Virtual machine
$ sudo yum update -y 
Step 2: Enter into the "opt" directory
cd /opt/

Step 3:  Download the tar or zap source file from http://ant.apache.org/bindownload.cgi
Step 4:  Exatract the zip file or tar file
$ sudo unzip apache-ant-1.10.5-bin.zip

Step 5: Add the ANT_HOME path.
$ sudo ANT_HOME=/opt/apache-ant-1.10.5
Step 6:  Now export the PATH
$ sudo PATH=$PATH:${ANT_HOME}/bin
Step 7: Now enter into the apache-ant-1.10.5
$ sudo cd apache-ant-1.10.5
Step 8:  Now, Run the below command to start the "Build"
$ sudo ant -f fetch.xml -Ddest=system

No comments:

Post a Comment

Featured Post

Ansible Tool Introduction

                                                                                                                                    Next ...