linux - GWT 编译器在 Linux 和 Windows 中的行为不同

标签 linux windows internet-explorer gwt

我们有一个 GWT 应用程序。我们使用 Maven 3 构建并运行 GWT 应用程序。 当我们在 Windows 7 上构建和运行并在 Windows 上的 IE 上测试时,应用程序运行良好。但是,当我们在 Linux 上编译并运行应用程序,然后在 Windows 上的 IE 上进行测试时,应用程序看起来就不一样了。 排除客户端问题:我们在完全相同的客户端上进行测试 - Windows 7 上的 Internet Explorer。 进一步调查发现 Linux 服务器上的 Javascript 与 Windows 服务器上的 Javascript 不同。

有谁知道为什么 GWT 在 Linux 和 Windows 上的行为不同?我们可以做什么让 GWT 在 Windows 和 Linux 上表现相同。 我们使用 Maven 3 来编译和运行 gwt。

GWT 的插件配置如下:

<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>gwt-maven-plugin</artifactId>
  <version>2.5.0</version>
  <executions>
    <execution>
      <goals>
        <goal>compile</goal>
        <goal>i18n</goal>
        <goal>generateAsync</goal>
      </goals>
    </execution>
  </executions>
  <configuration>
    <runTarget>MyApplication.html</runTarget>
    <hostedWebapp>${webappDirectory}</hostedWebapp>
    <i18nMessagesBundle>nl.my.app.client.Messages</i18nMessagesBundle>
    <inplace>true</inplace>
  </configuration>
</plugin> 

这是模块配置:

<?xml version="1.0" encoding="UTF-8"?>
<module rename-to='MyApplication'>
    <inherits name='com.google.gwt.user.User' />
    <inherits name="com.google.gwt.i18n.I18N" />
    <inherits name='nl.my.module' />
    <inherits name="com.sencha.gxt.ui.GXT" />
    <inherits name="com.google.common.collect.Collect" />
    <inherits name='com.google.gwt.user.Debug' />
    <inherits name='nl.my.othermodule' />

    <entry-point class='nl.my.MYApplication' />

    <source path='client' />
    <source path='shared' />

    <set-configuration-property name="UiBinder.useSafeHtmlTemplates" value="true" />

    <extend-property name="locale" values="nl_NL" />
</module>

该应用程序是使用以下命令构建和运行的: mvn gwt:运行

最佳答案

您可能在两个不同的系统上有不同的 JDK。确保 maven 使用的 JDK 相同。

关于linux - GWT 编译器在 Linux 和 Windows 中的行为不同,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14399340/

相关文章:

linux - Linux Bash脚本附录

c - C 中奇怪的输出缓冲行为

C++:如何在使用 libcurl 的 Windows 中运行可执行文件?

javascript - IE 中的 DOM 问题

internet-explorer - IE 编码与 W3C 标准编码

html - 替代背景大小 :cover in IE7+

linux - 限制用户访问 linux/ubuntu 中的特定目录

linux - 旧的 Skype 问题

windows - 设置本地 SMTP 和 POP3 以测试邮件发送和接收循环

java - 发布构建 jnativehook