Welcome To Snipplr


Everyone's Recent Groovy Snippets



« Prev 1 2 3 4 5
Example of JAXB-annotated POGO, marshalled and unmarshalled via static methods of JAXB object.
0 2408 posted 11 years ago by alces
Returns, how many hudson slaves is connected and working now
0 1944 posted 11 years ago by alces
Groovy script for hudson's scripler/script console (for latter case import line could be removed) aborting running builds with loo large logs.
0 1909 posted 11 years ago by alces
I was using Groovy to use Cajo to do distributed processing and after def cajo = new Cajo(); the process would never terminate on it's own until I discovered gnu.cajo.invoke.Remote.shutdown();
0 1787 posted 12 years ago by laurenceosx
See: // http://stackoverflow.com/questions/2406341/how-to-check-if-an-ip-address-is-the-local-host-on-a-multi-homed-system
0 1772 posted 12 years ago by laurenceosx
ActiveMQ 5.8 Groovy Embeded Broker Example - Laurence Toenjes - 5/14/2013 This example overcomes some limitations of the basic ActiveMQ embedded brokers examples I found online Some of the challenges were: # Multiple instances on same mac...
0 2173 posted 12 years ago by laurenceosx
// file: install_camel-jgroups_2.11-SNAPSHOT.groovy // url: http://faroe228.googlecode.com/svn/trunk/SvnAndMvnInstallFor_camel-jgroups_2.11-SNAPSHOT/InstallScript/install_camel-jgroups_2.11-SNAPSHOT.groovy
0 1745 posted 12 years ago by laurenceosx
Get obj props using java.beans.Introspector.getBeanInfo()
0 1978 posted 12 years ago by laurenceosx
Drop this in your project dir and run it. This will recursively kill CVS files and folders.
0 1857 posted 12 years ago by laurenceosx
Groovy file to md5 using Groovy and AntBuilder
0 1991 posted 12 years ago by laurenceosx
None
0 1710 posted 12 years ago by laurenceosx
see http://groovy.codehaus.org/gapi/groovy/inspect/swingui/ObjectBrowser.html
0 1871 posted 12 years ago by laurenceosx
Sample SVN call from gradle: doSvnMain( 'your', 'svn', 'args', 'go', 'here' );
0 2142 posted 12 years ago by laurenceosx
Created this to generate file:/ script path for Groovy Refreshable Spring Beans for use in applicationContext.groovy because refresh feature wouldn't work when Groovy script is looked up on classpath.
0 1899 posted 12 years ago by laurenceosx
When this snippet is added to a class it provides the boolean property: osWindows
0 1867 posted 12 years ago by laurenceosx
See: http://grepcode.com/file/repo1.maven.org/maven2/org.eclipse.jetty/jetty-start/7.1.1.v20100517/org/eclipse/jetty/start/Main.java#Main.stop%28int%2Cjava.lang.String%29
0 1791 posted 12 years ago by laurenceosx
Custom task using gradle java plugin for build runnable jar file with full dependencies set
0 1950 posted 12 years ago by alces
Groovy - Freemind - getModeController()
0 1763 posted 12 years ago by laurenceosx
Gets "src" attributes from all "img" tags in RSS entries descriptions
0 1912 posted 12 years ago by alces
Example of working with regexp sub-matches via Groovy way
0 1923 posted 12 years ago by alces
Reads CBC news RSS with fancy-prints its in table, splitting news description by image & text.
0 1938 posted 12 years ago by alces
Groovy fileToMd5
0 1845 posted 12 years ago by laurenceosx
close a JFrame window the same way as when the user clicks on the X close window button
0 1513 posted 12 years ago by laurenceosx
Safe way to recursive delete directory
0 2081 posted 12 years ago by alces
Returns true if the string 'value' is a valid date.
0 2995 posted 12 years ago by agarcim
Groovy Gradle create-dirs
0 1795 posted 13 years ago by laurenceosx
http://mina.apache.org/ftpserver/
1 2310 posted 13 years ago by laurenceosx
Groovy Freemind RecurseNode
0 1768 posted 13 years ago by laurenceosx
Groovy Swing Recurse Components
0 1796 posted 13 years ago by laurenceosx
used this to download a bunch of wsdls. Put all addresses in a file and execute the script like groovy download.groovy file.txt
0 3291 posted 13 years ago by m3rol666
« Prev 1 2 3 4 5