GWT编译器-只有一个编译器正在生成
我正在运行gwt-2.8.0-SNAPSHOT,并且已经运行了一段时间。我不记得它是什么时候开始发生的,也不记得是什么原因造成的,但我的编译只构建了一个排列。它不是为每个浏览器编译排列。我确实在不久前配置了user agent标志,但该标志早就被删除了。我已经检查了pom.xml中可能导致这种情况发生的任何特定标志,我已经检查了其他继承模块中的user.agent标志,但似乎找不到任何东西。我还启用了编译所有日志记录,但没有发现问题。我假设gwt-2.8.0-SNAPSHOT没有将此选项配置为仅构建单个置换 更新1 我只编译生产模块。Adam明智地指出,我在开发模块中使用的所有属性的崩溃将构建一个编译。生产模块没有注意到这一点,为了更好地衡量,我对其进行了注释以确保。我想在生产模块中添加所有可能的user.agent。当我这样做时,我得到一个错误,即I user.agent无法重新定义。我感觉其中一个继承的模块正在设置这个属性。我尝试将loglevel设置为ALL,以确定是否可以确定哪个模块正在设置属性,但没有成功。我将继续挖掘,直到找出是哪个模块导致了这个问题GWT编译器-只有一个编译器正在生成,gwt,Gwt,我正在运行gwt-2.8.0-SNAPSHOT,并且已经运行了一段时间。我不记得它是什么时候开始发生的,也不记得是什么原因造成的,但我的编译只构建了一个排列。它不是为每个浏览器编译排列。我确实在不久前配置了user agent标志,但该标志早就被删除了。我已经检查了pom.xml中可能导致这种情况发生的任何特定标志,我已经检查了其他继承模块中的user.agent标志,但似乎找不到任何东西。我还启用了编译所有日志记录,但没有发现问题。我假设gwt-2.8.0-SNAPSHOT没有将此选项配置为仅
<define-property name="user.agent" values="ie8,gecko1_8,safari,ie9,ie10"></define-property>
这是因为您正在使用
。这意味着,它不是为每个用户代理生成排列,而是为所有用户代理只生成一个排列。这是因为您使用的是
。这意味着,它不是为每个用户代理生成排列,而是为所有用户代理只生成一个排列。我需要将此添加到描述中。我只编译生产模块,它不包含collapseall属性。我也试着对此进行评论,看看这是否会产生影响,但没有。我尝试将添加到生产模块,以使其尝试并强制编译所有模块,但这给了我无法重新定义user.agent的错误。这使我相信继承的模块之一正在定义此配置。不过,您显示的日志是关于开发模块的。我需要将此添加到描述中。我只编译生产模块,它不包含collapseall属性。我也试着对此进行评论,看看这是否会产生影响,但没有。我尝试将添加到生产模块,以使其尝试并强制编译所有模块,但这给了我无法重新定义user.agent的错误。这使我相信继承的模块之一正在定义此配置。不过,您显示的日志是关于开发模块的。更新后,请检查编译模块中的文件compilation mappings.txt
。它应该包含映射到用户代理值的已编译的*.js文件名。更新后,请检查已编译模块中的文件compilation mappings.txt
。它应该包含映射到用户代理值的编译的*.js文件名。
<set-property name="user.agent" value="ie8,gecko1_8,safari,ie9,ie10"></set-property>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.1//EN" "http://google-web-toolkit.googlecode.com/svn/tags/2.5.1/distro-source/core/src/gwt-module.dtd">
<module>
<inherits name="com.google.gwt.user.User" />
<inherits name="com.google.gwt.place.Place" />
<inherits name="com.google.gwt.activity.Activity" />
<inherits name="com.google.gwt.logging.Logging" />
<inherits name='com.google.gwt.inject.Inject' />
<inherits name="gwt.material.design.GwtMaterialWithJQuery" />
<inherits name="gwt.material.design.GwtMaterialTableDebug" />
<inherits name="gwt.material.design.GwtMaterialDesignBasic" />
<inherits name="gwt.material.design.addins.GwtMaterialAddins" />
<inherits name="gwt.material.design.themes.GwtMaterialThemeBlue" />
<inherits name="com.googlecode.gwt.charts.Charts" />
<!-- Maps -->
<inherits name='com.google.gwt.maps.Maps' />
<!-- Maybe remove -->
<inherits name='com.google.common.base.Base' />
<inherits name="com.google.common.collect.Collect" />
<inherits name="com.google.common.util.concurrent.Concurrent" />
<inherits name="com.google.common.cache.Cache" />
<inherits name='com.googlecode.gflot.GFlotJQueryNoConflict' />
<inherits name="org.fusesource.restygwt.RestyGWT" />
<!-- Adding temporal support -->
<replace-with class="com.upsnap.dsp.web.client.temporal.ChronoUnit">
<when-type-is class="java.time.temporal.ChronoUnit" />
</replace-with>
<public path='view/resource'>
<include name='css/*.css' />
<include name='js/*.js' />
</public>
<set-property name="restygwt.autodetect.plainText" value="true" />
<!-- This is so gflot doesn't fail This should almost assuredly be disabled
for production -->
<set-configuration-property name='xsiframe.failIfScriptTag'
value='false' />
<!-- May be dangerous, do some more investigation 8-2016 -->
<!-- <set-configuration-property name="compiler.enum.obfuscate.names" value="true"
/> -->
<!-- Enabling GSS will tell the GWT compiler to use GSS for all CssResource
interfaces. This flag can either be “false” (default) or “true”. -->
<set-configuration-property name="CssResource.enableGss"
value="true" />
<!-- If GSS is enabled and the GWT compiler finds a .css file, it will first
convert this file to gss and then feed it into GSS on the fly. Gradual GSS
migration -->
<set-configuration-property name="CssResource.conversionMode"
value="strict" />
<source path='client' />
</module>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.1//EN" "http://google-web-toolkit.googlecode.com/svn/tags/2.5.1/distro-source/core/src/gwt-module.dtd">
<module rename-to='dsp'>
<inherits name="com.upsnap.dsp.web.DspCommon" />
<set-property name="gwt.logging.enabled" value="TRUE" />
<set-property name="gwt.logging.logLevel" value="INFO" />
<set-property name="compiler.stackMode" value="strip" />
<!-- Form Factor support -->
<replace-with class="com.upsnap.dsp.web.client.DesktopInjectorProvider">
<when-type-is class="com.upsnap.dsp.web.client.InjectorProvider" />
</replace-with>
</module>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.1//EN" "http://google-web-toolkit.googlecode.com/svn/tags/2.5.1/distro-source/core/src/gwt-module.dtd">
<module rename-to='dsp'>
<inherits name="com.upsnap.dsp.web.DspCommon" />
<set-property name="gwt.logging.enabled" value="TRUE" />
<set-property name="gwt.logging.logLevel" value="FINE" />
<set-property name="compiler.stackMode" value="emulated" />
<set-configuration-property name="compiler.emulatedStack.recordFileNames"
value="true" />
<set-configuration-property name="compiler.emulatedStack.recordLineNumbers"
value="true" />
<collapse-all-properties />
<!-- Form Factor support -->
<replace-with class="com.upsnap.dsp.web.client.DesktopInjectorProvider">
<when-type-is class="com.upsnap.dsp.web.client.InjectorProvider" />
</replace-with>
</module>
<configuration>
<disableCastChecking>true</disableCastChecking>
<disableClassMetadata>true</disableClassMetadata>
<style>PRETTY</style>
<logLevel>INFO</logLevel>
<runTarget>dsp.html</runTarget>
<hostedWebapp>${war.directory}</hostedWebapp>
<webappDirectory>${war.directory}</webappDirectory>
<copyWebapp>true</copyWebapp>
<localWorkers>4</localWorkers>
<modules><module>com.upsnap.dsp.web.DevelopmentDesktop</module>
</modules>
<extraJvmArgs>-Xms1024M -Xmx2048M -Dgwt.compiler.enableClosureCompiler=true</extraJvmArgs>
</configuration>
[INFO] --- gwt-maven-plugin:2.8.0-SNAPSHOT:compile (default) @ dsp-web ---
[INFO] Loading inherited module 'com.upsnap.dsp.web.DevelopmentDesktop'
[INFO] Loading inherited module 'com.upsnap.dsp.web.DspCommon'
[INFO] Loading inherited module 'gwt.material.design.GwtMaterialWithJQuery'
[INFO] Loading inherited module 'gwt.material.design.GwtMaterialDesignBase'
[INFO] [WARN] Line 45: Setting configuration property named 'CssResource.legacy' in module 'gwt.material.design.GwtMaterialDesignBase' that has not been previously defined
[INFO] Compiling module com.upsnap.dsp.web.DevelopmentDesktop
[INFO] Ignored 9 units with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[INFO] Computing all possible rebind results for 'com.upsnap.dsp.web.client.rest.ExtraCodecs.ErrorResponseCodec'
[INFO] Rebinding com.upsnap.dsp.web.client.rest.ExtraCodecs.ErrorResponseCodec
[INFO] Invoking generator org.fusesource.restygwt.rebind.JsonEncoderDecoderGenerator
[INFO] Generating: com.upsnap.dsp.web.client.rest.ExtraCodecs_ErrorResponseCodec_Generated_ExtendedJsonEncoderDecoder_
[INFO] checking: org.fusesource.restygwt.client.JsonEncoderDecoder, type: class com.google.gwt.dev.javac.typemodel.JParameterizedType
[INFO] Compiling 1 permutation
[INFO] Compiling permutation 0...
[INFO] Compile of permutations succeeded
[INFO] Compilation succeeded -- 33.295s
[INFO] Linking into /Users/chinshaw/devel/workspace/upsnap/dsp/modules/web/target/dsp-web-0.0.1-SNAPSHOT/dsp
[INFO] Invoking Linker Cross-Site-Iframe
[INFO] Ignoring the following script tags in the gwt.xml file
[INFO] jquery-1.8.3.min.js
[INFO] jquery-noconflict.js
[INFO]
[INFO] Link succeeded
[INFO] Linking succeeded -- 0.174s
[INFO]