Archive for the 'grails' Category

07
Aug
09

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 : http://www.nabble.com/How-can-I-generate-fields-using-the-create-domain-class-script–to24802653.html.

28
Jul
09

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" 

to

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

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




Blog Stats

  • 223,848 hits