GWT编译器选项,可使用gwt maven插件查看自定义生成器生成的文件 [英] GWT compiler option to see generated files from custom generator with gwt maven plugin

查看:107
本文介绍了GWT编译器选项,可使用gwt maven插件查看自定义生成器生成的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

指出-gen参数

如上一篇文章所述,我通过修改gwt maven插件配置来添加了gen标志,例如

As pointed out in the above post I added the gen flag by modifying my gwt maven plugin configuration like this

< gen> genSource< / gen>

它确实写了生成的类,但只有gwt核心生成器类。我自己的自定义生成器类输出均未写入其中。

Funny thing it does write the generated classes but only the gwt core generator classes. none of my own custom generator classes output is written into it.

有关可能出问题的任何线索吗?

Any clues as to what could be wrong ?

推荐答案

到为此,我假设您正在使用带有GWT插件的Eclipse。右键单击Gwt项目Run As-> Run Configuration,

To do this, I am assuming you are using Eclipse with GWT plugin. right click on Gwt project Run As->Run Configuration,


  1. 选择左侧的 Java应用程序。右键单击它,

    并选择新建。这将创建一个名为
    新配置的新运行配置。

  2. 在新配置中,您应该位于主选项卡中。确保
    确保在项目文本框中选择了正确的GWT项目。
    如果没有,您可以通过单击旁边的浏览
    按钮来选择合适的GWT项目。

  1. Select the "Java Application" on the left side. Right click on it,
    and select "New". This will create a new run configuration named "New Configuration"
  2. In the "New Configuration" ,you should be in the "Main" tab. Make sure that in the "Project" text box correct GWT project is selected. If not, you can select the right GWT project by clicking the "Browse" button next to it.

也可以在在主标签上,点击主
类文本框旁边的搜索按钮。在弹出窗口中编写编译器,然后选择
com.google.gwt.dev.Compiler

Also in the main tab, click on the "Search" button next to "Main Class" text box. Write "Compiler" in the popup window and select "com.google.gwt.dev.Compiler".

这篇关于GWT编译器选项,可使用gwt maven插件查看自定义生成器生成的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆