Created
June 24, 2014 16:39
-
-
Save danieldbower/ff061d50b194af2978e9 to your computer and use it in GitHub Desktop.
Arbitrary Groovy at Runtime
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def binding = new Binding() | |
def shell = new GroovyShell(binding) | |
def script = '''println "hello world" ''' | |
shell.evaluate(script) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment