Welcome To Snipplr


Everyone's Recent Snippets Tagged groovy



« Prev 1 2 3 4
Example of JAXB-annotated POGO, marshalled and unmarshalled via static methods of JAXB object.
0 1383 posted 10 years ago by alces
Returns, how many hudson slaves is connected and working now
0 1028 posted 10 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 950 posted 11 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 911 posted 11 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 1264 posted 11 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 905 posted 11 years ago by laurenceosx
Get obj props using java.beans.Introspector.getBeanInfo()
0 1042 posted 11 years ago by laurenceosx
Drop this in your project dir and run it. This will recursively kill CVS files and folders.
0 979 posted 11 years ago by laurenceosx
Groovy file to md5 using Groovy and AntBuilder
0 1079 posted 11 years ago by laurenceosx
None
0 882 posted 11 years ago by laurenceosx
see http://groovy.codehaus.org/gapi/groovy/inspect/swingui/ObjectBrowser.html
0 988 posted 11 years ago by laurenceosx
Sample SVN call from gradle: doSvnMain( 'your', 'svn', 'args', 'go', 'here' );
0 1202 posted 11 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 1043 posted 11 years ago by laurenceosx
When this snippet is added to a class it provides the boolean property: osWindows
0 1015 posted 11 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 966 posted 11 years ago by laurenceosx
Groovy - Freemind - getModeController()
0 917 posted 11 years ago by laurenceosx
Groovy fileToMd5
0 987 posted 11 years ago by laurenceosx
close a JFrame window the same way as when the user clicks on the X close window button
0 1143 posted 11 years ago by laurenceosx
Safe way to recursive delete directory
0 1142 posted 11 years ago by alces
Groovy Gradle create-dirs
0 961 posted 12 years ago by laurenceosx
http://mina.apache.org/ftpserver/
1 1337 posted 12 years ago by laurenceosx
Groovy Freemind RecurseNode
0 907 posted 12 years ago by laurenceosx
Groovy Swing Recurse Components
0 922 posted 12 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 2272 posted 13 years ago by m3rol666
bind it to ctrl+enter and everything that GroovyConsole do jEdit will do too. Uses groovy installation.
0 627 posted 13 years ago by guai
I used this because I had a legacy db table that all fields are char. the right spaces were a pita. The rightTrim function can be viewed in my profile
0 741 posted 13 years ago by m3rol666
this example is based on http://groovy.codehaus.org/Grape
0 893 posted 13 years ago by laurenceosx
Write File while replacing from anothther
0 784 posted 13 years ago by elm
0 765 posted 13 years ago by laurenceosx
0 762 posted 13 years ago by laurenceosx
« Prev 1 2 3 4