Package groovy.util

Examples of groovy.util.GroovyScriptEngine.run()


      GroovyScriptEngine gse = new GroovyScriptEngine(roots);

      Binding binding = new Binding();
      binding.setVariable("name", "Gweneth");

      Object output = gse.run("Hello.groovy", binding);
      assert output.equals("Hello Gweneth");
    } catch (IOException | ResourceException | ScriptException e) {
      System.out.println(e.getMessage());
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.