Widgetset compilation problem

Hi guys,

I don’t know why but a noticed a strange behavior compiling a widgetset for some tests applications.

I can’t compile the widgetset If I create a new Vaadin Project with a base package name starting with the same project name. It has some variations, look at them:


Success:

Project name: sync
Base project name: infarma.sync


Success:

Project name: sync
Base project name: infarma.teste.sync


Failure:

Project name: sync
Base project name: infarma.teste.sync.client


Failure:

Project name: sync
Base project name: infarma.sync.client


Failure:

Project name: sync
Base project name: sync.client


Failure:

Project name: sync
Base project name: sync


On Eclipse 3.5 and Spring Tool Suite 2.3.2

Can someone explain this behavior?

Thanks.

What error message do you get for the failed ones? At least “client” has special meaning for the GWT compiler (this is the folder where the client side classes are kept) but I’m not sure why it matters in this case. Also that it fails with the same project and package name sounds strange.

Compiling widgetset infarma.teste.sync.widgetset.SyncWidgetset
Updating GWT module description file…
08/07/2010 08:49:14 com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer getAvailableWidgetSets
INFO: Widgetsets found from classpath:
com.vaadin.terminal.gwt.DefaultWidgetSet in jar:file:C:/Sistemas/Java/dev2/sync/WebContent/WEB-INF/lib/vaadin-6.3.4.jar!/
infarma.teste.sync.client.widgetset.SyncWidgetset in file://C/Sistemas/Java/dev2/sync/src

java.io.IOException: O sistema não pode encontrar o caminho especificado
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:883)
at com.vaadin.terminal.gwt.widgetsetutils.WidgetSetBuilder.updateWidgetSet(WidgetSetBuilder.java:75)
at com.vaadin.tools.WidgetsetCompiler$1.run(WidgetsetCompiler.java:71)
at java.lang.Thread.run(Thread.java:619)
Widgetset compilation finished
Widgetset compilation completed

Sounds like a bug fixed in 6.4.0, please try it and see if the problem persists.

You’re absolutely right. Thank you Artur.