使用ant进行编译时,GWT 2.8.2编译挂起

时间:2019-07-18 05:49:36

标签: gwt

在使用GWT 2.8.2编译GWT应用程序时需要帮助。我们正在从GWT2.4升级到2.8,并在使用ant构建jar文件时遇到问题。我们尝试使用eclipse进行编译,并使用命令行提示符提示代码已成功编译,但gwt编译只是与ant挂在一起。创建缓存文件时卡住了。 任何帮助表示赞赏。

我们尝试使用命令行进行编译,并使其成功运行。尝试增加内存。启用调试模式以检查其挂起点。

<path id="project.class.path">
     <pathelement location="war/WEB-INF/classes"/>
     <pathelement location="${gwt.sdk}/gwt-user.jar"/>
     <fileset dir="${gwt.sdk}" includes="gwt-dev.jar"/>
     <!-- Add any additional non-server libs (such as JUnit) -->
    <fileset dir="war/WEB-INF/lib" includes="**/*.jar"/>
</path>



<target name="gwtc" depends="javac" description="GWT compile to JavaScript (production mode)">
     <java failonerror="true" fork="true" classname="com.google.gwt.dev.Compiler">
       <classpath>
         <pathelement location="src"/>
         <path refid="project.class.path"/>
         <pathelement location="../../validation-api-1.0.0.GA.jar" />
         <pathelement location="../../validation-api-1.0.0.GA-sources.jar" /> 
       </classpath>
       <!-- add jvmarg -Xss16M or similar if you see a StackOverflowError -->
       <jvmarg value="-Xmx512M"/>

       <!-- Additional arguments like -style PRETTY or -logLevel DEBUG -->
         <arg value="${gwt.args}"/> 
   <arg value="DEBUG"/> 
   <arg value="${gwt.module.id}" />
   <arg value="-style" />
   <arg value="OBFUSCATED" />
     </java>
   </target>

能够生成jar文件。 调试输出-悬挂点 enter image description here

0 个答案:

没有答案
相关问题