Wednesday, December 10, 2014

Running Groovy Code From Java


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: