gwt和javascript文件 [英] gwt and javascript files
问题描述
在我的Google web工具包应用程序中,我的gwt.xml文件在模块中包含以下行:
< module重命名到=富>
...
< script src =foo.js>< / script>
...
我的问题是:在我的GWT项目中, .js,以便在编译我的项目时将它打包到战争中去。 解决方案
把它放到公共文件夹中。公用文件夹是放置在gwt.xml文件所在的同一个包中的客户机文件夹旁边的文件夹。另请参阅 http://code.google.com/webtoolkit/doc/1.6 /DevGuideOrganizingProjects.html#DevGuideModules
In my Google web toolkit application, my gwt.xml file includes the following line in the module:
<module rename-to='foo'>
...
<script src="foo.js"></script>
...
My question is: where in my GWT project do I actually place foo.js so that it gets packed into the war when I compile my project?
Put it in a public folder. A public folder is a folder placed next to a client folder in the same package where your gwt.xml file is located. See also http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuideModules
这篇关于gwt和javascript文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!