Well, I got stung by http://code.google.com/p/google-web-toolkit/issues/detail?id=3491 and updated the build.xml file accordingly to use Java 5.
I was able to update the compiler entrance class, but I still have to use 'com.google.gwt.dev.GWTShell' because I couldn't get 'com.google.gwt.dev.HostedMode' to work. Advise here would be appreciated. I was passing in the "war" and "module" names (like the compiler args)... but it complained that web.xml had a configuration error. My web.xml doesn't have anything unusual in it and is auto-generated from NetBeans, so should work in most Containers. ========== build.xml ========== <?xml version="1.0" encoding="UTF-8"?> <project name="Muckraker" default="default" basedir="."> <description>Builds, tests, and runs the project Muckraker.</ description> <import file="nbproject/build-impl.xml"/> <!-- The remainder of this file provides GWT support. Some targets have been copied from the GWT4NB plugin build-gwt.xml file (which is flawed), and the remainder from the forum post by Jason Morris on http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/97f28839691de6f2 Edits have also been made to allow the dev jar to be added to the classpath automatically. --> <property file="nbproject/gwt.properties"/> <!-- GWT Hosted mode must run in 32 bit mode (i.e. Java 5) on OS X and compiler http://code.google.com/p/google-web-toolkit/issues/detail?id=3491 --> <condition property="javabinary" value="/System/Library/Frameworks/ JavaVM.framework/Versions/1.5/Home/bin/java" else="java" > <os family="mac"/> </condition> <target name="-post-compile"> <property name="output.js" location="${build.web.dir}/${gwt.module}/$ {gwt.module}.nocache.js" /> </target> <target name="-pre-dist"> <condition property="gwt.compile.needed"> <or> <not> <available file="${output.js}" /> </not> <not> <uptodate> <srcfiles dir="${src.dir}" includes="**/client/**/*.java" /> <mergemapper to="${output.js}" /> </uptodate> </not> </or> </condition> <!-- Could do this in one line if we could access the value os.family --> <condition property="gwt-dev.jar" value="${gwt.install.dir}/gwt-dev- mac.jar"> <os family="mac"/> </condition> <condition property="gwt-dev.jar" value="${gwt.install.dir}/gwt-dev- windows.jar"> <os family="windows"/> </condition> <condition property="gwt-dev.jar" value="${gwt.install.dir}/gwt-dev- linux.jar"> <os family="unix"/> </condition> <antcall target="do-gwt-compile" /> </target> <target name="do-gwt-compile" if="gwt.compile.needed"> <!-- You can override this property in the 'gwt.properties' file --> <property name="gwt.compiler.output.style" value="OBFUSCATED"/> <property name="gwt.compiler.logLevel" value="WARN"/> <java classpath="${javac.classpath}:${gwt-dev.jar}:${src.dir}" failonerror="true" classname="com.google.gwt.dev.Compiler" fork="true" maxmemory="512m" jvm="${javabinary}"> <arg value="-war"/> <arg path="${build.web.dir}/"/> <arg value="-style"/> <arg value="${gwt.compiler.output.style}"/> <arg value="-logLevel"/> <arg value="${gwt.compiler.logLevel}"/> <arg value="${gwt.module}"/> </java> <property name="gwt.output.dir" value="${gwt.module}"/> <move todir="${build.web.dir}/${gwt.output.dir}"> <fileset dir="${build.web.dir}/${gwt.module}"/> </move> </target> <target name="debug" description="Debug project in IDE." depends="init,compile,compile-jsps,-do-compile-single-jsp,dist" if="netbeans.home"> <nbdeploy debugmode="true" clientUrlPart="${client.urlPart}"/> <antcall target="connect-debugger"/> <antcall target="debug-connect-gwt-shell"/> </target> <target name="debug-connect-gwt-shell" if="netbeans.home" depends="init"> <nbjpdastart transport="dt_socket" addressproperty="jpda.address.gwt" name="com.google.gwt.dev.GWTShell" stopclassname=""> <classpath> <path path="${javac.classpath}:${gwt-dev.jar}:${src.dir}:$ {build.classes.dir}"/> </classpath> </nbjpdastart> <property name="gwtshell.jvmargs.base" value="-ea -Xdebug -Xnoagent - Djava.compiler=none -Xrunjdwp:transport=dt_socket,address=$ {jpda.address.gwt}"/> <condition property="gwtshell.jvmargs" value="$ {gwtshell.jvmargs.base} -XstartOnFirstThread" else="${gwtshell.jvmargs.base}"> <os family="mac"/> </condition> <java fork="true" classname="com.google.gwt.dev.GWTShell" failonerror="true" maxmemory="512m" jvm="${javabinary}"> <jvmarg line="${gwtshell.jvmargs}"/> <classpath> <path path="${gwt-dev.jar}:${src.dir}:${javac.classpath}:$ {build.classes.dir}"/> </classpath> <syspropertyset> <propertyref prefix="run-sys-prop."/> <mapper type="glob" from="run-sys-prop.*" to="*"/> </syspropertyset> <arg value="-noserver"/> <arg value="${client.url}"/> </java> </target> </project> --~--~---------~--~----~------------~-------~--~----~ 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-Toolkit@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 -~----------~----~----~----~------~----~------~--~---