Java Mailing List Archive

http://www.gg3721.com/

Home » user.groovy »

[groovy-user] Compile Groovy Dynamically

Victor Grazi

2010-03-11

Replies: Find Java Web Hosting

Author LoginPost Reply
Hello - I have a question on how to compile a groovy source file from a running application.

Background - We are rewriting our old legacy calc-engine-generator and execution in Groovy.
Closures and builders give us a lot more flexibility but that is another story.

My question is this - the final step of the calc engine generation application is to compile the generated groovy source file into a .class file.

We are doing that presently in Java using one of the sun.jar classes.

Is there any way to do the same in groovy - i.e. to compile a groovy source file from a running groovy application?

Much thanks, Victor
©2008 gg3721.com - Jax Systems, LLC, U.S.A.