gwt-compile:
[echo] env.GWT_HOME=C:\data\java\tools\gwt-windows-1.5.3
[java] Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
[java] at java.util.Arrays.copyOf(Arrays.java:2882)
[java] at java.lang.String.
[java] at com.google.gwt.dev.javac.CompiledClass.
....
Possible Issue and Solution
In order to invoke the gwt-compiler via an Ant task successfully, you will probably need to increase the maximum memory as follows:
<target name="gwt-compile" description="...">
<java classname="com.google.gwt.dev.GWTCompiler" fork="true” maxmemory="256m" failonerror="true">
<arg line="-out ${build}/www" />
<arg value="${gwt.module}" />
<classpath refid="gwt.classpath" />
</java>
</target>