Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug/view source of GWT generated java code

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.

like image 971
DianeH Avatar asked Feb 24 '23 05:02

DianeH


1 Answers

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.

like image 148
Chris Lercher Avatar answered Feb 26 '23 22:02

Chris Lercher