What are my options for being able to view the generated code from my custom GWT generator (com.google.gwt.core.ext.Generator).
I have been compleplating creating my own source writer that prints out the source in system.out etc, which I have managed to do but it all seems very hard and not very easy to use.
Sometimes I just break the generated code on purpose so that the broken file is printed out in the temp folder, works quite well.
There must be a better way...I'm sure I'm missing something.
To write the generated Java source (i.e. not the generated JavaScript) into a directory when you run the GWT-Compiler, simply add the gwtc compiler option "-gen", with a target directory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With