ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Ananiev" <>
Subject [ANN] PAnt -- Ant-based Python Build Tool
Date Wed, 05 May 2010 03:59:48 GMT
Hello Everyone, 

I'd like to announce PAnt -- a tool that allows implementing Ant build
scripts in Python (jython).

With Pant, Ant tasks can be defined using dictionaries and lists: 
ant.copy( todir="${target.dir}", overwrite="true", 
         fileset=dict( dir=".", includes="*.*" ) )

Ant targets are defined using Python decorators:
def target1():
    """Python target"""
    ant.echo("this is a target")

It is also possible to define targets programmatically.

Python code (running under Jython) can co-exist with Ant XML. Build script
developers can mix and match Ant XML and Python. For example, it is possible
to override Ant XML targets in Python code and vice versa.

PAnt consists of a Python module and several custom Ant tasks.
PAnt can be downloaded from


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message