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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.