Groovy web console

subscribe to the feed Subscribe
to this
site
case-sensitive (via #groovywebconsole)
tweet this snippet Tweet
this
script

case-sensitive

Published 2 months ago by yloeza with tags case-sensitive
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def targetName = 'foo'
def config = [ bundleInFoo: 'I am foo' ]
println config."bundleIn${targetName.capitalize()}"
println config."bundleIn${targetName}"