Tuesday, October 14, 2014

(ab)Using GWT Generators for linting?

Hi

I am trying to write a linter for checking typical GWT-RPC errors. I have a rough implementation that I piggy-back onto one of our Generators.

https://gist.github.com/rhmoller/7aebcfa928ebfd190784

I feel it is a bit of a hack. Is there a better way to hook into the process?

I considered using a pluggable annotation processor but then I would have to do something to find out which classes are candidates for GWT compilation.

Can I abort GWT compilation when I detect an error. I tried throwing UnableToCompleteException but that only stops the generator, while the rest of GWT compilation process continues. This also causes the error messages from the linter to drown in the compiler output.

/Rene

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment