Lately I’ve been thinking about all the different ways to bring Groovy into a pure Java or command line environment, and ended up diving into some code to explore the various options. Turns out there’s definitely a good variety of options for running Groovy dynamically inside and out of a Java application. I started out […]
Tags:
Console,
dynamic execution,
embedded,
Groovy,
groovyConsole,
GroovyScriptEngine,
GroovyShell,
Hello world program,
Java,
Programming,
script,
Source code,
theKaptain
I had a great chance to play with some new stuff this weekend, namely Grails 1.2-M3, the new Grails REST plugin and Groovy in general. Awhile back I wrote some Groovy code to explore the various Jira, Fisheye and Crucible REST api’s using Apache HttpClient directly, and I wanted to see what it would like […]
Tags:
Apache,
Crucible,
DataTable,
Fisheye,
Google,
google-charts,
Grails,
Groovy,
HTTPBuilder,
HttpClient,
Jira,
JSON,
REST,
RESTClient,
theKaptain,
XML
Sorting a Map by value with Groovy is very simple, due to the added ‘sort’ method on the Map interface. [groovy language=”language="true”] def map = [a:3, b:2, c:1] map = map.sort {it.value} assert map == [c:1, b:2, a:3] [/groovy] Turns out doing a reverse sort on a Map by values is almost as easy. [groovy […]
I’ve been writing a lot of Groovy scripts lately and have developed quite a fondness for the CliBuilder along the way. There’s lots of great examples on the internet, but I could only find one place that demonstrated how to easily consume an unknown number of parameters as a List and that was a copy […]
Do you make keeping up with technology a priority? Have you found a way to prevent drowning in the vast sea of content AND still keep abreast of everything you want to? Me neither, but here’s where I go to learn new things, find solutions and keep up with the general state of the union […]
I had a great time tonite geeking out with Griffon in front of an audience. My thanks to everyone that attended, and especially to Manfred Moser and VIJUG for the chance to show off some Groovy and Griffon Swing code! The venue was great – very nice that the Vancouver Island Tech Park is kind […]