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

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

问题描述

在我的 Google Web 工具包应用程序中,我的 gwt.xml 文件在模块中包含以下行:

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>
...

我的问题是:我实际上将 foo.js 放在我的 GWT 项目中的哪个位置,以便在我编译我的项目时将其打包到战争中?

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?

推荐答案

将其放在公共文件夹中.公用文件夹是放置在 gwt.xml 文件所在的同一包中的客户端文件夹旁边的文件夹.另请参阅 http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuideModules

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天全站免登陆