Previous Section
Table of Contents
Next Section


Appendix A: Ant 2.x Versions

To eliminate the limitations of the older versions of Ant, Ant 2.x versions are being developed. Ant 2.x versions will simplify and enhance the functioning of Ant using Application Programming Interfaces (APIs). For example, the installation process of Ant 2.x versions consists of processes, such as Webstart and self-extracting jar files, to simplify the installation of Ant. Ant 2.x versions are simplified by:

Ant 2.x versions extend the <taskdef> task of Ant 1.x versions by packaging the tasks into task libraries along with data types and other utilities. The task libraries are JavaTM Archive (JAR) archives that describe the contained tasks to Ant 2.x versions. These versions will automatically detect the tasks contained in the task library that will allow you to use these tasks in the buildfile explicitly.

Ant 2.x versions extract the functions that are common to the tasks and redirect them to utility classes to provide a tested and stable framework. The core of Ant 2.x versions is based on the object model of task, target, and project and is independent of external references.

New Tasks and Features

Ant tasks are extensible Java classes. As a result, you can extend the functioning of Ant tasks by adding new Java classes. Ant 2.x versions contain new tasks that extend the scope of Ant.

The new tasks are:

Ant 2.x versions provide the following features that enhance the functioning of older versions:



Previous Section
Table of Contents
Next Section