Skip to content

Instantly share code, notes, and snippets.

@ondrej-kvasnovsky
Last active December 18, 2015 00:59
Show Gist options
  • Save ondrej-kvasnovsky/5701008 to your computer and use it in GitHub Desktop.
Save ondrej-kvasnovsky/5701008 to your computer and use it in GitHub Desktop.
ANT script for the widget set compilation.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC
"-//Google Inc.//DTD Google Web Toolkit 1.7.0//EN"
"http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-source/core/src/gwt-module.dtd">
<module>
<inherits name="com.vaadin.DefaultWidgetSet" />
<inherits name="com.example.YourWidgetset" />
</module>
<?xml version="1.0"?>
<project name="Widgetset compiler" basedir="." default="compile-widgetset">
<target name="compile-widgetset">
<path id="classpath">
<pathelement path="grails-app/vaadin"/>
<pathelement path="src/java"/>
<pathelement path="target/classes"/>
<fileset dir="libs-widgetset">
<include name="*.jar"/>
</fileset>
</path>
<echo>Compiling ${widgetset}...</echo>
<property name="module" value="app.AppWidgetSet" />
<property name="module.output.dir" location="web-app/VAADIN/widgetsets" />
<property name="localWorkers" value="2" />
<mkdir dir="${module.output.dir}" />
<java classname="com.google.gwt.dev.Compiler" classpathref="classpath" failonerror="yes" fork="yes" maxmemory="512m">
<arg value="-war" />
<arg value="${module.output.dir}" />
<arg value="-localWorkers" />
<arg value="${localWorkers}" />
<arg value="-strict" />
<arg value="${module}" />
<sysproperty key="vFailIfNotSerializable" value="true" />
<jvmarg value="-Xss8M" />
<jvmarg value="-XX:MaxPermSize=256M" />
<jvmarg value="-Djava.awt.headless=true" />
</java>
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment