I am trying to compile a GWT module located in a source folder with
quite a few files.  I am using ANT builder to do this.  Here is an
excerpt from my build file that shows the GWT compile target:

<path id="gwt.project.class.path">
                <fileset dir="gen" />
                <pathelement location="${gwt.sdk}/gwt-user.jar"/>
                <fileset dir="${gwt.sdk}" includes="gwt-dev*.jar"/>
                <fileset dir="${smartgwt.sdk}" includes="smartgwt*.jar"/>
            <fileset dir="lib" includes="**/*.jar"/>
        </path>

        <!-- This is the target responsible for compiling GWT class files
into JavaScript -->
        <target name="GWTCompile" depends="compileApp" description="GWT
compile to JavaScript">
          <java failonerror="true" fork="true"
classname="com.google.gwt.dev.Compiler">
            <classpath>
              <pathelement location="src"/>
              <path refid="gwt.project.class.path"/>
            </classpath>
            <!-- add jvmarg -Xss16M or similar if you see a
StackOverflowError -->
            <jvmarg value="-Xmx512M"/>
            <!-- Additional arguments like -style PRETTY or -logLevel DEBUG --
>
            <arg value="${app.gwtmodule}"/>
          </java>
        </target>

My issue is that running this build script takes forever (let's say
>30 min on a Pentium D, I haven't tested it for longer).  I think it
has to do with the fact that there is a huge amount of source in the
src directory and huge number of resulting class files in the gen
directory.  My GWT module touches only 1% of the rest of the source
though.  Is it possible to optimize the GWT compiler such that it only
looks at the source reachable from the module (i.e. source that the
module calls)?  So far, all that I can think of is specifying the
minimal amount of inherits in the gwt.xml file.

Thanks,
Mayur
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to