I’ve been working on a small project using Google Web Toolkit, which is a pretty nice framework. However, it’s not exactly easy to integrate into a normal build environment with ant, as it’s based on command line utilities.
Try it out. It’s released under a GPL license.
The task can be used to compile any number of modules. It’s not necessary to specify the module names directly. Instead, the task accepts filesets specifying the modules.
Place the ant-gwt.jar file in your project’s lib dir, make sure that the gwt-*.jar files are there too, and use like this:
Please note that the order of the classpath is important. If you get weird errors about files not being found, then ensure that the source directory is first, then the locally compiled classes, and then the jar files.
It’s possible to enable some simple optimization by setting optimize=”true” on gwtcompile. That will try to analyze the java files to see if any of the required files have been changed since last compile. Required files are all files which are included in the source tag in the .gwt.xml-files.