[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
I've tried to change groovy-all-1.0-jsr-06.jar
with groovy-1.5.1.jar but
it seems that it is not that simple to move to the new Groovy version :-(
I'll make any new comment in the concerned JIRA Issue.
Thanks,
Call me stupid! The name of the folder in the Groovy distribution can
not be clearest: embeddable.
The .jar to be embedded is not groovy-1.5.1.jar but
groovy-all-1.5.1.jar. I've copied this -jar to Xwiki lib, restarted the
servlet container and voilá! each() works now.
The only difference with groovyConsole is that the browser doesn't move
to a new line after each output item, but this is just a minor issue
that can be solved by simply including a <br> in each output line.
Something like:
<% list = ["Rod", "James", "Chris"]
list.each { println it + "<br>"} %>
I will add a comment in the concerned JIRA issue.
Cheers,
Ricardo
--
Ricardo RodrĂguez
Your EPEC Network ICT Team