gwt和javascript文件 [英] gwt and javascript files

查看:76
本文介绍了gwt和javascript文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的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屋!

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