简体   繁体   English

如何在netbeans中的现有GWT项目中引用另一个GWT模块?

[英]How do I reference another GWT module within an existing GWT project within netbeans?

As per the title, I have an existing GWT project within netbeans. 按照标题,我在netbeans中已有一个GWT项目。

I've set up the libraries correctly so I can write code without errors, but the GWT compiler complains: 我已经正确设置了库,因此我可以编写没有错误的代码,但是GWT编译器抱怨:

for each class I'm using from the other module: No source code is available for type (whatever type it can't find) ; 对于我在其他模块中使用的每个类:类型没有源代码(无论找不到哪种类型) did you forget to inherit a required module? 您忘了继承必需的模块吗?

I'm sure I have the gwt.xml file setup correctly, are there any other steps I could be missing? 我确定我已经正确设置了gwt.xml文件,还有其他步骤可能会丢失吗?

Solved it: 解决了:

In my project that contains the module I'm bringing into another project, I need to go to Project Properties > Build > Packaging, and make sure that I'm not excluding **/*.java files. 在包含要导入另一个项目的模块的项目中,我需要转到“项目属性”>“构建”>“打包”,并确保排除** / *。java文件。 This makes sense as GWT needs the source files. 这很有意义,因为GWT需要源文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM