Welcome To Snipplr


Everyone's Recent Groovy Snippets



« Prev 1 2 3 4 5
  1. FAV

    Groovy object's marshalling/unmarshalling via JAXB

    Example of JAXB-annotated POGO, marshalled and unmarshalled via static methods of JAXB object.
    Groovy 8 views posted 5 years ago by alces
  2. FAV

    Hudson online nodes count

    Returns, how many hudson slaves is connected and working now
    Groovy 4 views posted 6 years ago by alces
  3. FAV

    Abort hudson builds with huge logs

    Groovy script for hudson's scripler/script console (for latter case import line could be removed) aborting running builds with loo large logs.
    Groovy 3 views posted 6 years ago by alces
  4. FAV

    Groovy Cajo Shutdown

    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();
    Groovy 3 views posted 6 years ago by laurenceosx
  5. FAV

    Groovy IsIpAddressLocal

    See: // http://stackoverflow.com/questions/2406341/how-to-check-if-an-ip-address-is-the-local-host-on-a-multi-homed-system
    Groovy 6 views posted 6 years ago by laurenceosx
  6. FAV

    Groovy ActiveMQ 5.8 Embedded Broker

    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...
    Groovy 5 views posted 6 years ago by laurenceosx
  7. FAV

    install_camel-jgroups_2.11-SNAPSHOT

    // 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
    Groovy 4 views posted 6 years ago by laurenceosx
  8. FAV

    Groovy - Get BeanInfo Props for name, type and value

    Get obj props using java.beans.Introspector.getBeanInfo()
    Groovy 5 views posted 6 years ago by laurenceosx
  9. FAV

    Groovy - KillCvs.groovy - Recursive Kill of Cvs Turd Files and Folders

    Drop this in your project dir and run it. This will recursively kill CVS files and folders.
    Groovy 4 views posted 6 years ago by laurenceosx
  10. FAV

    Groovy - file to md5 using Groovy and AntBuilder

    Groovy file to md5 using Groovy and AntBuilder
    Groovy 4 views posted 6 years ago by laurenceosx
  11. FAV

    Groovy - threadedPrintStringBuffer

    None
    Groovy 3 views posted 6 years ago by laurenceosx
  12. FAV

    Groovy - EDT Inspect and Kill All Inspection Windows

    see http://groovy.codehaus.org/gapi/groovy/inspect/swingui/ObjectBrowser.html
    Groovy 4 views posted 6 years ago by laurenceosx
  13. FAV

    Groovy Gradle - Do SVN Commands without having SVN installed.

    Sample SVN call from gradle: doSvnMain( 'your', 'svn', 'args', 'go', 'here' );
    Groovy 4 views posted 6 years ago by laurenceosx
  14. FAV

    Groovy Spring Refreshable Script Bean - findScriptResourcePath

    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.
    Groovy 4 views posted 6 years ago by laurenceosx
  15. FAV

    Groovy Gradle - isOsWindows

    When this snippet is added to a class it provides the boolean property: osWindows
    Groovy 6 views posted 6 years ago by laurenceosx
  16. FAV

    Groovy - stopJetty

    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
    Groovy 3 views posted 6 years ago by laurenceosx
  17. FAV

    Jar with dependencies task for build.gradle

    Custom task using gradle java plugin for build runnable jar file with full dependencies set
    Groovy 11 views posted 6 years ago by alces
  18. FAV

    Groovy - Freemind - getModeController()

    Groovy - Freemind - getModeController()
    Groovy 4 views posted 6 years ago by laurenceosx
  19. FAV

    Save all images from RSS feed

    Gets "src" attributes from all "img" tags in RSS entries descriptions
    Groovy 4 views posted 6 years ago by alces
  20. FAV

    Groovy way to replace regexp matches

    Example of working with regexp sub-matches via Groovy way
    Groovy 6 views posted 7 years ago by alces
  21. FAV

    CBC World News RSS parser

    Reads CBC news RSS with fancy-prints its in table, splitting news description by image & text.
    Groovy 3 views posted 7 years ago by alces
  22. FAV

    Groovy fileToMd5

    Groovy fileToMd5
    Groovy 5 views posted 7 years ago by laurenceosx
  23. FAV

    groovy close a JFrame window the same way as when the user clicks on the X close window button

    close a JFrame window the same way as when the user clicks on the X close window button
    Groovy 5 views posted 7 years ago by laurenceosx
  24. FAV

    Recursive delete current directory

    Safe way to recursive delete directory
    Groovy 6 views posted 7 years ago by alces
  25. FAV

    Validate if a string is a Date

    Returns true if the string 'value' is a valid date.
    Groovy 5 views posted 7 years ago by agarcim
  26. FAV

    Groovy Gradle create-dirs

    Groovy Gradle create-dirs
    Groovy 4 views posted 7 years ago by laurenceosx
  27. FAV

    Groovy Embedded Apache FTP Server Example

    http://mina.apache.org/ftpserver/
    Groovy saved by 1 person 8 views posted 7 years ago by laurenceosx
  28. FAV

    Groovy Freemind RecurseNode

    Groovy Freemind RecurseNode
    Groovy 3 views posted 7 years ago by laurenceosx
  29. FAV

    Groovy Swing Recurse Components

    Groovy Swing Recurse Components
    Groovy 3 views posted 7 years ago by laurenceosx
  30. FAV

    download files with groovy and wget

    used this to download a bunch of wsdls. Put all addresses in a file and execute the script like groovy download.groovy file.txt
    Groovy 7 views posted 8 years ago by m3rol666
« Prev 1 2 3 4 5