Hi,
Recently I was writing an annotation processor [1] which gets called
from javac. JDK 6 javac exposes an API called Messager to be used to
report warnings or errors or diagnostic information. I noticed that if I
launch javac from command line, my messages appear in the output, but
when javac is invcoked by maven-compiler-plugin, my messages don't
appear. While debugging I found that maven passes StringWriter to javac
to write the messages to and javac is also writing to that object, so I
suspect maven is not subsequently printing the information available in
the StringWriter object. More information is available at [2].
Thanks,
Sahoo
[1]
http://weblogs.java.net/blog/ss141213/archive/2007/11/a_javac_plugin_1.html
[2] http://forum.java.sun.com/thread.jspa?threadID=5241006&tstart=0
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]