Apache Ant site Apache Ant logo

the Apache Ant site



At Apache Ant™'s website

Starting with the release of Apache Ant 1.4 the Ant's FAQ is bundled with the distribution, the most recent version can always be found at the website.

FAQ: https://ant.apache.org/faq.html


jGuru hosts an interactive Ant discussion forum and FAQ system

FAQ: http://www.jguru.com/faq/java-tools/ant



The ASF provides a Wiki farm for Apache projects.

Main page: Apache Wiki Farm
Ant Wiki: Ant Wiki


The most recent books come first

Ant in Action

Published April/May 2007, and covering Ant 1.7.

This is a major rewrite of the first edition; still 600 pages long.

This book moves up from Ant1.5 to Java1.5 and 1.7, with a near-complete rewrite of the applied-ant section, covering new topics such as antlibs, repository management with Ivy, Xml Schema validation, EJB3.0/Java EE development and advanced deployment using SmartFrog. The ant coding section looks at AntUnit, antlib authoring and scripting languages, while the beginners chapters, the first third of the book, still shows developers how to build, test, package and redistribute a Java application.

If you are one of the 20,000+ owners of the first edition, it is now obsolete. Sorry :)

Author: Steve Loughran and Erik Hatcher
Publisher URL: https://www.manning.com/loughran/
Book URL http://antbook.org/
Source code repository http://sourceforge.net/projects/antbook

Available from:
Amazon.com | Barnes & Noble | Book Sense | Powells.com

Ant: The Definitive Guide, 2nd edition

Published April 2005, and covers Ant release 1.6.1.

This is a complete rewrite of the first edition; this book is now 290 pages and so covers Ant in more depth than its predecessor.

It also mixes reference information (tables) with text explanation on how to use the tasks. Contents includes JUnit, CVS, execution, basic deployment, Web application development and XDoclet. There is also coverage of XDoclet, and a chapter on how to extend Ant in Java.

Author: Steve Holzner
URL: https://www.oreilly.com/catalog/anttdg2/

Available from:
Amazon.com | Barnes & Noble | Book Sense | Powells.com

Extreme Programming with Ant

This book shows how to implement an XP project using Ant 1.5.3, and many other 3rd party tools. Covers:

Authors: Glenn Niemeyer and Jeremy Poteet

Available from:
Amazon.com | Barnes & Noble | Book Sense | Powells.com

Ant. Das Java-Build-Tool in der Praxis

A German language book on Ant that covers Ant 1.5. This is the original description:

        Das Build-Tool Ant ist das Open-Source-Werkzeug, das den Entwicklungsprozess einer Java-
        oder J2EE-Anwendung wesentlich vereinfacht. Gesteuert durch XML-basierte Skripte führt es
        nahezu alle Aufgaben aus, die nach dem Kodieren einer Anwendung anfallen.

Some topics:

The book is available in English as "Ant: The Java Build Tool in Practice"

Authors: Bernd Matzke

Available from:
Amazon.com | Barnes & Noble | Book Sense | Powells.com

Java Development with Ant

Published 2002. This book covers Ant 1.5, including:

Also available in Korean and German editions

Authors: Erik Hatcher and Steve Loughran
URL: https://www.manning.com/antbook/

Available from:
Amazon.com | Barnes & Noble | Book Sense | Powells.com

Ant: The Definitive Guide, 1st edition

Published 2002, Covers Ant release 1.4.1.

Authors: Jesse E. Tilly and Eric M. Burke
URL: https://www.oreilly.com/catalog/anttdg/

Available from:
Amazon.com | Barnes & Noble | Book Sense | Powells.com

Ant. Kurz und Gut.

A German language short reference for Ant that covers Ant 1.4. This is the original description:

  Ant kurz & gut enthält eine vollständige Referenz der Built-in Tasks
  und ihrer jeweiligen Attribute sowie kurze Beispiele für ihre Verwendung.
  Daneben bietet das Buch eine knappe Einführung in die Arbeit mit Ant und
  eine Erläuterung der Ant-Basiselemente (Projekte, Properties, Targets und Tasks).
  Behandelt werden außerdem grundlegende Konzepte wie Filesets, Patternsets und
  Pfadstrukturen, das Schreiben eigener Tasks, die Aufruf-Syntax und Optional Tasks. 
Author: Stefan Edlich
URL: https://www.amazon.de/exec/obidos/ASIN/3897212412/

Available from:
Amazon.com | Barnes & Noble | Book Sense | Powells.com

Java Tools for eXtreme Programming

This book covers the following XP subjects:

Authors: Richard Hightower and Nicholas Lesiecki
URL: https://www.wiley.com/cda/product/0,,047120708X,00.html

Available from:
Amazon.com | Barnes & Noble | Book Sense | Powells.com

Articles and Presentations

The following sections list articles and presentations written about Apache Ant. If you've written something that should be included, please post it to one of the mailing lists.


Extending Ant Input Abilities

The contents of this document is the following:

Author: Ivan Ivanov
URL: https://sourceforge.net/project/showfiles.php?group_id=103509 (Download ZIP+PDF from Sourceforge)

Ant 1.6 for Task Writers

This article talks about XML namespace handling, Ant libraries and the newly introduced type polymorphism.

Author: Stefan Bodewig
URL: https://www.oracle.com/technetwork/articles/bodewig-taskwriters-082397.html

New Ant 1.6 Features for Big Projects

This article describes the <macrodef>, <import> and <subant> tasks in detail and shows how they help in building bigger systems.

Author: Stefan Bodewig
URL: https://www.oracle.com/technetwork/articles/bodewig-ant1-091487.html

Programmieren für Ant

This article describes the main topics of programming your own tasks. Description is done on five examples.

This article is written in German and published in Java-Spektrum 5/2004.

Author: Bernd Matzke
URL: https://www.sigs-datacom.de/fachzeitschriften/javaspektrum/archiv/artikelansicht/artikel-titel/programmieren-fuer-ant.html

Ant in Anger: Using Ant in a Production Development System

This document describes strategies and some basic examples of how to use Ant in larger team development projects.

Author: Steve Loughran
URL: https://ant.apache.org/ant_in_anger.html

Ant Task Guidelines

This document describes how to write custom Ant tasks, and how to submit them to potentially be included in Ant.

Author: Steve Loughran
URL: https://ant.apache.org/ant_task_guidelines.html

Automate your build process using Java and Ant

This article provides an introduction to using Ant with some basic examples and by highlighting some of the important tasks.

Author: Michael Cymerman
URL: https://www.javaworld.com/javaworld/jw-10-2000/jw-1020-ant.html

Using Ant and Weblogic EJBs

This article describes how to use Ant to create Weblogic EJBs, and some workarounds for issues you may encounter.

Author: Jesse E. Tilly
URL: http://www.onjava.com/pub/a/onjava/2001/06/25/antejb.html

Developing with JAXB and Ant

Series of articles that shows how to use Ant together with the Java API for XML Binding (JAXB).

Author: Joseph Shelby
URL: http://www.onjava.com/pub/a/onjava/2002/03/06/jaxant1.html