Questions tagged [groovysh]

The Groovy Shell, aka. groovysh is a command-line application which allows easy access to evaluate Groovy expressions, define classes and run simple experiments.

The Groovy Shell, aka. groovysh is a command-line application which allows easy access to evaluate Groovy expressions, define classes and run simple experiments.

http://groovy.codehaus.org/Groovy+Shell

16 questions
0
votes
1 answer

Optional parameter in Groovy Script

I have a script that simply does // TODO: assign default value if not defined println optionalParameter When I invoke it using: new GroovyShell(new Binding([optionalParameter: 'text'])).evaluate(script) it works fine. But if I run it without a…
Michal Kordas
  • 10,475
  • 7
  • 58
  • 103
1
2