Monday, July 15, 2019

GWT 2.8.2 compilation hanged while compiling using ant

Need help in compilation of GWT application using GWT 2.8.2. We are upgrading from GWT2.4 to 2.8 and facing issue while building jar file using ant. We tried compiling with eclipse and using command line prompt the code is compiling successfully
but gwt compilation just hanged with ant. It stuck while creating cache files.



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

Any help much appreciated.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/75f3b9d7-3a5f-4d03-a1b9-d5f3b0cc9508%40googlegroups.com.

No comments:

Post a Comment