I'm working on a "WithLog" AST transform that will basically do this to the attached class:
private static final Logger log = Logger.getLogger(WhateverTheClassNameIs.class)
Not a big deal. Once I got my head wrapped around what is going on, I created this annotation and impl:
https://svn.codehaus.org/grails-plugins/grails-sublog/trunk/src/groovy/WithLog.groovyhttps://svn.codehaus.org/grails-plugins/grails-sublog/trunk/src/groovy/WithLogImpl.groovyUnfortunately, this test doesn't work:
https://svn.codehaus.org/grails-plugins/grails-sublog/trunk/test/unit/ASTTransformTests.groovyhttps://svn.codehaus.org/grails-plugins/grails-sublog/trunk/src/groovy/testing/Foo.groovyAny idea why? I'm totally at a loss for how to debug Groovy AST transforms when they don't seem to
be being called at all, but are compiled in fine.
~~ Robert Fischer, Smokejumper IT Consulting.
Enfranchised Mind Blog
http://EnfranchisedMind.com/blogCheck out my book, "Grails Persistence with GORM and GSQL"!
http://www.smokejumperit.com/redirect.html---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email