I'm trying to build my GWT app via ant and deploy it (to Jetty).  I am
building without errors but the code does not work.

When I plop the contents of the war directory generated by Eclipse
(using the GWT plugin, without an ant script) into the deployment
location (so that I'm running it via Jetty outside of Eclipse), the
code runs fine.  I have written an ant build script that attempts to
duplicate the Eclipse-generated war output in a staging directory, and
when I plop the contents of that war directory in the same location,
it does not run.  So I'm trying to figure out what's wrong with my ant
script.

This is the build task:

    <property name="gwt.args" value="" />
    ...
    <target name="gwtc" depends="javac" description="GWT compile to
JavaScript">
      <java dir="${staging.dir}" failonerror="true" fork="true"
classname="com.google.gwt.dev.Compiler">
        <classpath>
          <pathelement location="../../java/mymodule/src"/>
          <path refid="project.class.path"/>
        </classpath>
        <!-- add jvmarg -Xss16M or similar if you see a
StackOverflowError -->
        <!--<jvmarg value="-Xmx256M"/>-->
        <jvmarg value="-Xmx512m"/>
        <jvmarg value="-Xss1M"/>
        <!-- Additional arguments like -style PRETTY or -logLevel
DEBUG -->
        <arg line="${gwt.args}"/>
        <arg value="net.mycompany.mymodule.MyModule"/>
      </java>
    </target>

The output isn't exactly the same: Eclipse generates a war/<mymodule>/
deferredjs directory and my build doesn't.  Most significantly, when I
build, I get a warning:

gwtc:
     [java] Aug 19, 2010 9:10:24 AM
java.util.prefs.FileSystemPreferences$7 run
     [java] WARNING: Prefs file removed in background /Users/
myuser/.java/.userPrefs/com/google/gwt/dev/shell/prefs.xml
     [java] Compiling module net.mycompany.mymodule.MyModule
     [java]    Compiling 6 permutations
     [java]       Compiling permutation 0...
     [java]       Compiling permutation 1...
     [java]       Compiling permutation 2...
     [java]       Compiling permutation 3...
     [java]       Compiling permutation 4...
     [java] Aug 19, 2010 9:10:54 AM
java.util.prefs.FileSystemPreferences syncWorld
     [java] WARNING: Couldn't flush user prefs:
java.util.prefs.BackingStoreException:
java.lang.IllegalArgumentException: Not supported: indent-number
     [java]       Compiling permutation 5...
     [java]    Compile of permutations succeeded
     [java] Linking into /Users/myuser/Dev/mymodule/release/staging/
war/mymodule.
     [java]    Link succeeded
     [java]    Compilation succeeded -- 30.119s

Well if you look, that prefs.xml file doesn't exist.  Any clues?  The
task is tweaked from the build.xml file that was generated by
webAppCreator.

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to