| From | Sent On | Attachments |
|---|
| Subject: | [groovy-eclipse-plugin-user] Global AST | |
|---|---|---|
| From: | Daniel Henrique Alves Lima (emai...@yahoo.com.br) | |
| Date: | Jan 11, 2011 1:37:59 pm | |
| List: | org.codehaus.groovy.eclipse-plugin-user | |
| Attachments: | ||
Refine Search
| From | Sent On | Attachments |
|---|---|---|
| Daniel Henrique Alves Lima | Jan 11, 2011 1:37 pm | .jar, .groovy |
| Andy Clement | Jan 11, 2011 1:42 pm | |
| Daniel Henrique Alves Lima | Jan 11, 2011 1:58 pm | |
| Andy Clement | Jan 11, 2011 2:06 pm | |
| Daniel Henrique Alves Lima | Jan 11, 2011 2:38 pm |
| Subject: | [groovy-eclipse-plugin-user] Global AST | |
|---|---|---|
| From: | Daniel Henrique Alves Lima (emai...@yahoo.com.br) | |
| Date: | Jan 11, 2011 1:37:59 pm | |
| List: | org.codehaus.groovy.eclipse-plugin-user | |
| Attachments: | ![]() log_code_guard.jar - 22k ![]() Bla.groovy - 0.2k | |
Hi, everybody.
Maybe this is a stupid question, but: Is Eclipse plugin able to run Global AST? How should i proceed? I've tried to add log_code_guard.jar to the project classpath (all global AST is written in pure Java), but it wasn't enough. Am i missing something? It seems nothing is happening.
I'm using Eclipse 3.6.1, Groovy 1.7.x and Java 6.
If i try to run using the command line, it "works" (i've inserted a bug to be sure that the transformation was happening):
[daniel@anyhost test_log]$ groovy -cp ./lib/log4j-1.2.15.jar:./lib/log_code_guard.jar:./bin src/Bla.groovy visitClass(): node Bla log exp: LOGGER.debug(ok) log method: debug log method enabled: isDebugEnabled parent if null replacing... 1 Caught: groovy.lang.MissingMethodException: No signature of method: org.apache.log4j.Logger.isDebugEnabled_() is applicable for argument types: () values: [] Possible solutions: isDebugEnabled() at Bla.main(Bla.groovy:9)
Thanks in advance!
import org.apache.log4j.Logger;
class Bla {
private static final Logger LOGGER = Logger.getLogger (Bla.class)
public static void main(args) { println "1" LOGGER.debug("ok") println "2" }
}
--------------------------------------------------------------------- To unsubscribe from this list, please visit:

