Evaluate dynamic code (string), add and retrieve parametersBy neokrates, written on June 3, 2010 |
groovy snippet |
- neokrates
- Email: uwarov@yahoo.com
- Website: http://www.thinkplexx.com
- Join date: 05-31-09
- Posts: 20
Rate it
Ad
Poll
Loading ...
Most popular search terms:
Stats
-
Since publication, this page was visited 380 time(s).
1 2 3 4 5 | def binding = new Binding(name: 'Neokrates') def shell = new GroovyShell(binding) def expression = "print 'your name is ' +name; name = 'anonymous' " shell.evaluate(expression) print "name was changed to: " + binding.getVariable("name") |
|
TAGS
|
|
SOCIAL
|


















