Archive for the 'grails' Category


my take on grails’s generate-domain-class

One of the things I liked in Rails was that you could define the properties for a model from the command-line. The groovy people seem to like only to generate the file, and then open it and add the properties manually. This is understandable if you also need to specify some constraints … but in the beginning, I think you only want to get something running.

This is why I wrote a script that can also take properties from the command line and turn them into properties for that specific domain class. The code can be found here :–to24802653.html.


grails gantbinding error

If you’re getting this error :

Error starting Grails: org/codehaus/gant/GantBinding

then you can fix it by changing line 130 of the startGrails.bat file from

set JAVA_OPTS=%JAVA_OPTS% -Dgrails.version="1.1.1-SNAPSHOT" 


set JAVA_OPTS=%JAVA_OPTS% -Dgrails.version="1.1.1"

This information was originally posted here by Geoff Lane. Thanks Geoff!

Blog Stats

  • 264,621 hits