I'm trying to integrate a GWT project into our ANT build system, and
was wondering is there any tasks written to do this? Also is there any
documentation on this kind of thing?
thanks,
Justin
<macrodef name="gwtc">
<attribute name="module"/>
<sequential>
<echo message="gwtc: @{module}" />
<java classname="com.google.gwt.dev.GWTCompiler"
fork="true">
<arg value="-logLevel"/>
<arg value="WARN"/>
<!--arg value="-style"/>
<arg value="PRETTY"/-->
<arg value="-out"/>
<arg value="../${moysklad.build.dir}/$
{ant.project.name}/web"/>
<arg value="@{module}"/>
<jvmarg value="-Xmx192m" />
<jvmarg value="-Xms128m" />
<classpath refid="gwt.classpath"/>
</java>
</sequential>
</macrodef>
<target name="gwt.compile.module">
<java classname="com.google.gwt.dev.GWTCompiler" fork="true">
<jvmarg value="-Xmx256M"/>
<arg value="-out"/>
<arg value="${www.dir}"/>
<arg value="${gwt.module}"/>
<classpath>
<pathelement location="${base}/src"/>
<pathelement location="${base}/lib/gwt-user.jar"/>
<pathelement location="${gwt.home}/gwt-dev-${platform}.jar"/>
</classpath>
</java>
</target>