Saturday, 19 July 2008

Does the noise in my head bother you?

A quick post for those of you using the dynamic addTo* methods with manyToMany relationships under grails 1.0.3. You may notice alot of noise in your logs / test results - this is down to a stray println in DomainClassGrailsPlugin.groovy (line 173) which does the following:

println "$obj - ${obj.properties} - ${prop.otherSide.name}"

Options: patch grails, wait for 1.0.4, ignore it.

2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Yes it bothers me. To patch

    Backup ${GRAILS_HOME}/dist/grails-core-1.0.3.jar

    Check out grails 1.0.3 source from http://svn.codehaus.org/grails/tags/GRAILS_RELEASE_1_0_3 to ${somewhere}

    Delete line 173 from ${somewhere}/src/groovy/org/codehaus/groovy/grails/plugins/DomainClassGrailsPlugin.groovy

    Copy ${GROOVY_HOME}/embedded/groovy-all-1.5.6.jar to ${somewhere}/lib

    Set JAVA_HOME to point to a 1.5 VM (groovyc doesn't work with 1.5.6 - this has been fixed in 1.5.7)

    cd ${somewhere} and run ant

    copy ${somewhere}/dist/grails-core-1.0.3.jar to ${GRAILS_HOME}/dist/.

    Don't forget to change JAVA_HOME back to a 1.6 VM if that's what you're using.

    ReplyDelete

Note: only a member of this blog may post a comment.