• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jython and Ant

 
Mark Herschberg
Sheriff
Posts: 6037
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Very often, I have a complex makefile system for my projects. These files are supplimented by perl scripts. It seems to me I could use Ant to replace make, and jython to replace the perl, and it would be better integrated. Has anyone tried antyhing like this? How has it worked?
--Mark
 
Robert W Bill
Author
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh yes. Some people are working on formalizing the best ways to plug Jython into ant. There's two parts to this- extending build scripts with Jython and adding ant tasks that will do the jythonc compilation of Jython scripts.
I expect all of this will be ready soon, and a great way to go for you.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My ant knowledge is quite shallow at the moment, so others can correct me as necessary - but it seems as though ant is powerful enough that there's a good chance you can replace a lot of your current build-related Perl scripts with... well... ant. Assuming that they're relatively simple tasks, but were beyond the capabilities of a makefile. You may well find you don't need to wait for a formal ant/Python integration to achieve your goals. Possibly worth looking into...
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I second your views. We did the build of the whole project using Ant. Am not sure as to how
complicated your project requirements are.
All of our code was in java. So it used to check out files from cvs..do javac, ejbc and jar-ring and put in proper folders heirarchy under weblogic.
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ant is completely open so you can write all your own Ant tasks in Java.
 
Shad Gregory
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Robert,
Do you know who is working on jython/ant integration?
Is there any code available yet? A taskdef for
jythonc would be sweet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic