You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Alexander Ananiev <al...@myarch.com> on 2010/05/05 05:59:48 UTC

[ANN] PAnt -- Ant-based Python Build Tool

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:
@target
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 http://myarch.com/pant

Regards,
-Alexander




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org