Installing and configuring Ant
Ant is a build tool. Download Ant from https://ant.apache.org/bindownload.cgi and unzip it.
Configuring Ant in Windows
The following are the steps to configure Ant in CentOS:
- Go to
Control Panel
|All Control Panel Items
|System and click on Advanced system settings
|Advanced
|Environment Variables...
. - Click on
New
. - Set the variable name as
ANT_HOME
and location and clickOK
.
Configuring Ant in CentOS
Set the ANT_HOME
and JAVA_HOME
environment variables:
![](https://static.packt-cdn.com/products/9781788471060/graphics/9f67d587-5a2c-4020-b012-136f943f28cf.png)
There is an option available in Jenkins to install Ant or Maven automatically. We will see this in the Jenkins configuration section.