Ant-Contrib Tasks


What's this?

The Ant-Contrib project is a collection of tasks (and at one point maybe types and other tools) for Apache Ant.

This Software is distributed under the Apache Software License.


First you must install Apache Ant itself, most of the Ant-Contrib tasks require Ant 1.5 (the final release, not a beta version) or higher to work properly. You can download Ant from Apache.

Then you need the Ant-Contrib tasks themselves. As there is no release of these tasks yet, you have to build them from sources. Fortunately this is easy, check out the sources (grab the ant-contrib module from CVS), change into the source directory of ant-contrib and type ant. After Ant has completed, you'll find ant-contrib-0.1.jar in the lib subdirectory.

You now have the choice:

  1. Copy ant-contrib-0.1.jar to the lib directory of your Ant installation. If you want to use one of the tasks in your own project, add the line
    <taskdef resource="net/sf/antcontrib/"/>
    to your build file.
  2. Keep ant-contrib-0.1.jar in a separate location. You now have to tell Ant explicitly where to find it (say in /usr/share/java/lib):
    <taskdef resource="net/sf/antcontrib/">
        <pathelement location="/usr/share/java/lib/ant-contrib-0.1.jar"/>

  3. Copyright © 2002 Ant-Contrib Project. All rights Reserved.