Skip to main content


developerWorks  >  Java technology | Web development  >

Apache Ant 101: Make Java builds a snap

developerWorks

Level: Introductory

Matt Chapman , Software engineer, IBM

17 Dec 2003

Register now or sign in using your IBM ID and password.

Whether you're a veteran user of Apache Ant in need of a refresher or just starting out with this open source Java™-based build tool, this tutorial provides a wealth of information. With Java developer and Ant enthusiast Matt Chapman from the IBM Java Technology Centre, you'll walk through the steps involved in writing a build file for a simple Java project, and then look at some of Ant's other useful functions, including filesystem operations and pattern matching. You'll finish the course by writing our own Java class that extends Ant's functionality.

Prerequisites

If you write Java code and you're not already using Ant, then this tutorial is for you. Whether you're currently using a different build tool, or none at all, learning more about Ant will probably encourage you to make the effort to switch to it. You don't need any prior experience with or knowledge of Ant before you proceed.


System requirements

In the course of the tutorial, we'll show you how to run Ant both from the command line and from within the open source Eclipse IDE. You don't need both environments to try out the examples -- you can choose either, or even a different development environment, as long as it supports Ant. If you choose to use Ant from the command line, you will need to follow the installation instructions on the Ant home page if Ant is not installed on your machine already. If instead you decide to use only the Eclipse environment, you don't need to install Ant separately, as it is included with Eclipse.



Duration

Under two hours


Formats

html, pdf


Share this....

digg Digg this story del.icio.us del.icio.us Slashdot Slashdot it!


Back to top


Document options

Document options requiring JavaScript are not displayed