调试/查看GWT生成的Java代码的源代码 [英] Debug/view source of GWT generated java code
问题描述
我可以从我的自定义GWT生成器(com.google.gwt.core.ext.Generator)查看生成的代码的选项是什么。
我一直在补充创建自己的源代码编写器,在system.out等文件中打印出源代码,这是我设法做的,但这一切似乎都很难,易于使用。
有时我只是故意破坏生成的代码,以便将破损的文件打印在临时文件夹中,效果很好。 b
$ b
必须有更好的方法...我确信我错过了一些东西。
>当您运行GWT编译器时,要将生成的 Java 源文件(即不是生成的JavaScript)写入目录,只需添加 gwtc编译器选项-gen与目标目录。
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.
这篇关于调试/查看GWT生成的Java代码的源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!