2013-07-04 35 views
0

如果我没有在我的gwt.xml中指定<source path='insertname4folder'/>之类的东西,gwt java2js编译器的默认行为是什么。我看到一些不使用这些标签的多模块项目,我只能说只有一个类将被翻译,因为它在X.client.Y包中;我假设j2js编译器默认使用该约定呢?当gwt.xml中没有<source>标签时会发生什么?

回答

3

它假设名为“client”的默认文件夹,该文件夹与module.gwt.xml文件并行。

实施例:

Location of module xml file - com.insanity.examples.gwt.HelloWorld.gwt.xml 
Location of default gwt client code - com.insanity.examples.gwt.client 

即如在文件.gwt.xml具有标签一样好。

你可以阅读更多关于它在这里 - 。http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html#DevGuideModules

+0

但它也将检查com.insanity.examples.gwt.client *吧? – osh

+0

是的。 com.insanity.examples.gwt.client的包和子包下的所有文件都被认为是与JAVAScript兼容的代码。 – SSR

相关问题