« Return to Thread: Groovy AST not taking?
Robert Fischer wrote: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.groovy
https://svn.codehaus.org/grails-plugins/grails-sublog/trunk/src/groovy/WithLogImpl.groovy
Unfortunately, this test doesn't work:
https://svn.codehaus.org/grails-plugins/grails-sublog/trunk/test/unit/ASTTransformTests.groovy
https://svn.codehaus.org/grails-plugins/grails-sublog/trunk/src/groovy/testing/Foo.groovy
Any 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/blog
Check 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
« Return to Thread: Groovy AST not taking?
| Free embeddable forum powered by Nabble | Forum Help |