Using Jython in Ant Build Process

Kent Johnson kent37 at tds.net
Thu Apr 21 08:15:59 EDT 2005


Maurice LING wrote:
> I am looking for a way to use Jython in Ant build process. I have some 
> pure Python scripts (not using any C extensions) that I'll like to 
> incorporate into Java using Jython. I heard that this can be done but 
> you can I set up Ant to do this? Sorry, I'm no expert with Ant.

The ant <script> task lets you embed Jython in Ant build files using Bean Scripting Framework. See 
the Ant docs for <script> for some (non-Jython) examples.

The links in the Ant docs are out-of-date.
BSF is here: http://jakarta.apache.org/bsf/manual.html
Jython is here: http://www.jython.org

Kent



More information about the Python-list mailing list