Using Jython in Ant Build Process

M

Maurice LING

Hi,

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.

By the way, I'm using Eclipse.

Thanks again.

Cheers
Maurice
 
K

Kent Johnson

Maurice said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,998
Messages
2,570,242
Members
46,834
Latest member
vina0631

Latest Threads

Top