There’s one particular thing Groovy is really good for and that is working with XML. When I started playing around with the REST support in the latest version of Spring MVC I wanted to try using Spring for the controller infrastructure and delegate to Groovy for producing XML responses. It turned out this wasn’t as [...]
REST and XML using Spring MVC and Groovy
April 9th, 2010 by Mattias Hellborg Arthursson — Java
Tags: groovy, hateoas, rest, spring, xml
Upgrading Groovy to 1.6.2 Fails on Mac
April 29th, 2009 by Ulrik Sandberg — Tips & Tricks
When I tried to upgrade Groovy from 1.6.1 to 1.6.2 using MacPorts, it failed with an OutOfMemoryError. I managed to get it to build using some manual fixing in the build file. I’ll explain what I did in this blog. This was the result that I got: $ sudo port upgrade groovy —> Building groovy [...]
Tags: groovy, macosx, macports, problem, scripting, upgrade
Always Use Parenthesis in Groovy Builders
April 24th, 2009 by Ulrik Sandberg — Tips & Tricks
I recently ran into an interesting Groovy feature when demonstrating the strengths of the MarkupBuilder. As you probably know, parenthesis in a Groovy method call are optional, unless it’s a no-args call. In that case the parenthesis are needed in order to distinguish the call from a property. However, leaving out parenthesis in a Builder is asking for trouble. I’ll show you why.
Tags: builder, gotcha, groovy, parenthesis, programming, scripting
