Monthly Archives: July 2011

Dependency injection in the Grails Console

If you have a service named MyService with a function named HelloWorld, you can access it via dependency injection by adding def MyService def result = MyService.HelloWorld() But to test in the console you need to do this: def service … Continue reading

Posted in Grails | Comments Off

How to install Gradle on Ubuntu 10.10

Download zip file from http://www.gradle.org/downloads.html and unzip to folder $ sudo unzip gradle-1.0-milestone-3-all.zip -d /opt/gradle/ Edit PATH in the environment file $ sudo nano /etc/environment Add the following to the environment file PATH=”… :$GRADLE_HOME/bin” GRADLE_HOME=”/opt/gradle/gradle-1.0-milestone-3″ Reload environment variables source /etc/environment … Continue reading

Posted in Ubuntu | Comments Off