ant build script for vaadin 7 widget set compilation

The vaadin 7 book, on the page

https://vaadin.com/book/vaadin7/-/page/clientside.compiling.html

references a sample build.xml file for ant:

https://vaadin.com/download/misc/build-widgetset-vaadin7.xml

which leads to a 404.

Where do I get this sample build file?

I can’t find a version for Vaadin 7, but looking at the widgetset compilation for Vaadin 6, Vaadin 7 shouldn’t differ that much from it. You can find one version of it at
http://dev.vaadin.com/browser/versions/6.4/build/package/build-widgetset.xml
. It’s the compile-widgetset target which is the one you want to have a look at.

If there is problems, the write them here and someone might be able to help with specifics. I’ve also notified the author of the book and hopefully that link will be fixed very soon.

You’re right, it basically works as for vaadin 6, except that

com.vaadin.terminal.gwt.widgetsetutils.WidgetSetBuilder

has to be replaced by

com.vaadin.server.widgetsetutils.WidgetSetBuilder

I guess that should go into the migration guide. Currently, the migration guide says

but in fact they were already like that for Vaadin 6.

Vaadin 6 supported both the old (GWTCompiler) and the new (Compiler) GWT compiler classes, each with slightly different set of supported parameters.

WidgetSetBuilder is a wrapper for it (needed for J2SE 5.0 compatibility, at least), which used to use the older one in Vaadin 6. In Vaadin 7, only the new compiler class is present. WSB takes the same parameters as the wrapped compiler class.