The First Ant Project

Without much further ado, let’s take a whistle-stop tour of a typical Ant project. In this section, we’ll

  • Download and install Ant

  • Build a simple build.xml file for compilation and JAR file packaging

  • Run Ant

This chapter will give you a feel for what Ant can do. Subsequent chapters will delve more deeply into the specifics, so don’t worry if you don’t understand everything to begin with.

Installation

The first thing you must do is retrieve the latest version of Ant from the main Apache Web site:

http://jakarta.apache.org/ant/index.html

Follow the Download link and select the correct binary for your system. Typically, this will be either a .ZIP or .TAR.GZ file. Installation is a simple matter of unpacking the downloaded archive ...

Get Ant Developer’s Handbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.