Creating Ant Targets in Python with PAnt 2.0

Posted on 11/10/2009 , Alexander Ananiev, No Comments ( Add )

We've just released a new version of PAnt, a tool for developing build scripts in python. The key new feature of PAnt 2.0 is the ability to create Ant targets directly from python. This allows for completely getting rid of Ant XML files and for developing build scripts entirely in Python.

Here is an example:
@target(unless="prop.name", depends=ptarget1)
def p_target2():
"""Python project ptarget2"""
ant.echo("echo ptarget2")

You can find more details about creating targets from PAnt here.

Leave a Reply

Name

Mail

Website

Your Comment

Most Popular Posts

Recent Tweets

Recent Posts

Blog Categories

Blog Archives