GWT アプリケーションがあります。Maven 3 を使用して、GWT アプリケーションをビルドして実行します。Windows 7 でビルドして実行し、Windows 上の IE でテストすると、アプリケーションは正常に動作します。ただし、Linux でアプリケーションをコンパイルして実行し、Windows の IE でテストすると、アプリケーションの外観が異なります。クライアントの問題を除外するために、Windows 7 の Internet Explorer というまったく同じクライアントでテストを行いました。さらに調査した結果、Linux サーバーの Javascript は Windows サーバーの Javascript とは異なることが判明しました。
Linux と Windows で GWT の動作が異なる理由を知っている人はいますか? Windows と Linux の両方で GWT を同じように動作させるにはどうすればよいでしょうか。Maven 3 を使用して gwt をコンパイルおよび実行します。
GWT のプラグイン構成は次のとおりです。
<プラグイン>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<バージョン>2.5.0</バージョン>
<実行>
<実行>
<目標>
<goal>コンパイル</goal>
<goal>i18n</goal>
<goal>generateAsync</goal>
</目標>
</実行>
</実行>
<構成>
<runTarget>MyApplication.html</runTarget>
<hostedWebapp>${webappDirectory}</hostedWebapp>
<i18nMessagesBundle>nl.my.app.client.Messages</i18nMessagesBundle>
<インプレース>真</インプレース>
</設定>
</プラグイン>
モジュール構成は次のとおりです。
<?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='クライアント' />
<source path='shared' />
<set-configuration-property name="UiBinder.useSafeHtmlTemplates" value="true" />
<extend-property name="locale" values="nl_NL" />
</モジュール>
アプリケーションは、次のコマンドを使用してビルドおよび実行されます: mvn gwt:run