---------------------------------------------------
Sent from BlackBerry
def binding = ["firstname":"Sam", "lastname":"Pullara",
"city":"San Francisco", "month":"December", "signed":"Groovy-Dev",
"capitalize": org.apache.commons.lang.WordUtils.&capitalize]
def text = '<% import static
org.apache.commons.lang.WordUtils.capitalize %>Dear
"${capitalize(\'erik\')} $lastname",\nSo nice to meet you in <%
print city %>.\nSee you in ${month},\n${signed}'
It seems neither of the suggested solutions works in 1.8.0. The only way
that works is to use the fully qualified names.
Is this a regression in 1.8?
Best regards,
Xiaoping Jia
> > > __________________________________________________________________
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Thanks,
I attach a simple test and the output of the test runs. There are 4
tests, only test3() works. I tested with both SimpleTemplateEngine and
GStringTemplateEngine. Note that the exceptions thrown by the two
engines are different for test2()
Thanks!
Xiaoping
Binding.metaClass.methodMissing = { String name, args ->
delegate[name](args) }