Compile GWT via Ant

ant, build, gwt, java

Solution

Right there in the docs, Google tells you the command-line arguments for the Compiler, DevMode, JUnit, etc.

- Development Mode Options

- GWT Compiler Options

- Starting the code server (Super Dev Mode)

- Running JUnit test cases (search for `TestRunner`)

And of course, there's Command-line Tools, and it talks about the `webAppCreator` tool that generates an Ant build file. That tools is also presented in the Getting Started page (and goes on straight with using Ant as a build tool, not even talking about Eclipse) and the tutorial.

Problem

Is it possible to run the GWT compiler (Java to JavaScript) and perhaps run other GWT tools (such as compile reports, run in dev mode, etc.) from an Ant buildfile? If so, where are these Ant tasks defined? I don't see anything in the SDK. I can't imagine Google would make something as powerful as GWT and force developers to only run builds out of their local Eclipse instances...how do CI builds kick this stuff off?

Original source