Welcome To Snipplr


Everyone's Recent Snippets Tagged groovy



Make sure Jackson core and Mappers are on classpath. So who can explain why userImage has a size of 7. I assume the byte-Array is encoded. What format?
0 137 posted 9 years ago by hansamann
An example of how to configure the CliBuilder to read command line arguments in Groovy.
0 126 posted 9 years ago by miceno
0 162 posted 10 years ago by laurenceosx
0 75 posted 10 years ago by michaelss
Added generated.by to false in TemplateServlet init
0 110 posted 10 years ago by laurenceosx
0 211 posted 10 years ago by cadrlife
1 265 posted 10 years ago by oznek
0 141 posted 10 years ago by zxeem
Groovy has the as keyword which enables the implementation of a Java interface by using the as keyword, its quite easy to mimic this in JRuby.
0 156 posted 11 years ago by narkisr
0 163 posted 11 years ago by berndschiffer
0 132 posted 11 years ago by berndschiffer
Groovy script that creates an XML file using an XML template containing ${params} and a standard Java Properties file
0 211 posted 11 years ago by gripnrip
Expected Behaviour ================== * Both classes should be rendered in the specified custom format when `store/book/list.json` is loaded. * Order of how the marshallers are added should not matter. * It should be possible to register more t...
0 142 posted 11 years ago by kungfoo
An easy way to launch an external process (http://docs.codehaus.org/display/GroovyJSR/Run+Sub-Process+Safely).
1 154 posted 11 years ago by narkisr
Put this script in your path and you can start your scripts located in ~/.groovy/scripts from everywhere. Tags: Bash, Linux, Groovy
0 175 posted 11 years ago by mahome