Skip to content

Instantly share code, notes, and snippets.

@danieldbower
Created June 24, 2014 16:39
Show Gist options
  • Save danieldbower/ff061d50b194af2978e9 to your computer and use it in GitHub Desktop.
Save danieldbower/ff061d50b194af2978e9 to your computer and use it in GitHub Desktop.
Arbitrary Groovy at Runtime
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