TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Automation

Download and Install Ant on Windows

Overview

In this tutorial, we will learn steps involved to Download and Install Ant on Windows 10 operating system. The steps would be same for older versions like Windows 7.

Download

Navigate to the Ant Download page. Pick a suitable distribution based on the Java version.

https://ant.apache.org/bindownload.cgi

Ant tool is distributed as .zip and tar.gz archives. The .zip archive file is for Windows operating system. Download the .zip archive file on to the computer.

Install Ant on Windows

Locate the .zip archive file. Extract the contents of the zip file. Right click on the file and choose Extract All… menu option.

 

Ant zip file contents

Optionally, we can rename and copy the folder to standard location like C:, so that the tool can be accessed at ‘C:\ant’.

Create ANT_HOME variable

Create an environment variable and set the Ant folder path location to the variable. For example, set the ANT_HOME environment variable to:

ANT_HOME to C:\ant

Steps to setup environment variable on Windows:

https://www.testingdocs.com/setting-up-maven_home-on-windows-10/

Append bin folder to the PATH variable

Append ANT_HOME\bin folder to the PATH environment variable. For example, C:\ant\bin

The batch scripts in the Ant bin directory use this environment variable to know where the Ant is installed on the machine.

Verification

Lunch command prompt and issue the following command. Successful install would display the ant version information on the console window.  If we add the Ant bin directory to the PATH variable, we can run this command from anywhere in the command prompt. There is no need to change directory path to that of the Ant bin folder!

\> ant -v

 

ANT version command

 

The default Ant build file name is build.xml 

That’s it. We are done with Ant installation on Windows OS.

Related Posts

Emma Tool

Automation /

Code Coverage Tools

Selenium 4 Automation Project

Automation /

Selenium 4 Project Setup on Ubuntu Linux

Testing webpage mobile-friendliness using a tool

Automation /

Testing webpage mobile-friendliness using a tool

Errors Code Testing Development

Automation /

Error Severity Metrics

Automation Environment Setup Verification

Automation /

Automation Environment Setup Verification

‹ PivotTable and PivotChart› Website Performance Testing Tools

Recent Posts

  • MS Access Data Types
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version