Tag: groovy
Posts of Tag: groovy
  1. How to Schedule a Job with Jenkins

    Introduction Scheduling a job in Jenkins is very useful when it comes to developing a great product. Imagine what a great advantage is to transform a time-consuming task into an automated job. It doesn't need a...Learn More
    Internetdevopstooljenkinsgroovy
  2. Are there compelling reasons not to use Groovy?

    I'm developing a LoB application in Java after a long absence from the platform (having spent the last 8 years or so entrenched in Fortran, C, a smidgin of C++ and latterly .Net). Java, the language, is not mu...Learn More
    JavaJVMgroovy
  3. Catching typos in scripting languages

    If your scripting language of choice doesn't have something like Perl's strict mode, how are you catching typos? Are you unit testing everything? Every constructor, every method? Is this the only way to go abou...Learn More
    PythongroovyRubyScriptingunit-testing
  4. Can I use grails tag outside of GSP?

    For example, i can put <g:createLink controller="user" action="show" /> inside a .gsp file and it will work nicely. But also I'd like to use the same closure createLink inside a .groovy file wh...Learn More
    groovyClosuresGrailsTags
  5. Execute a Groovy class in a package from the command line

    Is there a way to execute a Groovy class by specifying the package with dots, as with java? Example: File ./my/package/MyClass.groovy: package my.package class MyClass { static void main(String[] args) { ...Learn More
    groovyPackagecommand-line
  6. How do I redirect output to stderr in groovy?

    I'm looking for a way to redirect output in a groovy script to stderr: catch(Exception e) { println "Want this to go to stderr" } ...Learn More
    JavagroovyScripting
  7. Standardizing a Release/Tools group on a specific language

    I'm part of a six-member build and release team for an embedded software company. We also support a lot of developer tools, such as Atlassian's Fisheye, Jira, etc., Perforce, Bugzilla, AnthillPro, and a couple ...Learn More
    PythongroovyPerl
  8. How to Set the Default Configuration Properties for a Micronaut Library

    How to Set the Default Configuration Properties for a Micronaut Library Vladimír Oraný Follow Feb 10 · 4 min read Micronaut is a very extensible framework which allows you to easily create new libraries. Gener...Learn More
    JavaNewsgroovyTechMicronaut
  9. Best groovy closure idiom replacing java inner classes?

    As new to groovy... I'm trying to replace the java idiom for event listeners, filters, etc. My working code in groovy is the following: def find() { ODB odb = ODBFactory.open(files.nodupes); // data nucleus...Learn More
    groovyClosures
  10. Groovy way to log process output

    I would like to start a long-running command-line process in my Grails application, log each line of output to the console when it arrives, and do other stuff asynchronously, while the process and logging activ...Learn More
    asynchronousgroovyMultithreadingIo
  11. Groovlet in Grails apps

    How do I drop a Groovlet into a Grails app? Say, for example, in web-app/groovlet.groovy import java.util.Date if (session == null) { session = request.getSession(true); } if (session.counter == null) { ...Learn More
    groovyGrails
  12. Security Reinforcement: How to collect visitors' IP addresses in Grails Framework?

    How to make a logging list of Users' IP addresses, should this be done via tomcat or grails or a combination of both ...Learn More
    SpringgroovyGrailsTomcat