public class CodeExecutor {
/**
* @param args
*/
public static void main(String[] args) {
runWithGroovyShell();
}
static void runWithGroovyShell() {
new GroovyShell().evaluate("println 'Hello World'");
}
}
http://stackoverflow.com/questions/3989592/calling-a-groovy-function-from-java
No comments:
Post a Comment