Compiling Vaadin Addon Using Ant

I use add on called ICEPush to pull Async data to the client. BTW I am using vaadin 7. When I open the page, it causes the following error:

Widgetset does not contain implementation for org.vaadin.artur.icepush.ICEPush. Check its component connector @Connect mapping, widgetsets GWT module description file and re-compile your widgetset. In case you have downloaded a vaadin add-on package, you might want to refer to add-on instructions. 

I use ant as my build script. Can you help me with the steps for compiling Addon?

Thanks.

0
source share
2 answers

Pretty long, but better late than never.

I created a new task, which depends on my sources.

 <target name="build-widgetset" if="widgetset"> <java classname="com.google.gwt.dev.Compiler" failonerror="yes" fork="yes"> <arg value="-war" /> <arg value="${webroot}/VAADIN/widgetsets" /> <arg value="${widgetset}" /> <arg value="-logLevel" /> <arg value="DEBUG" /> <arg value="-strict" /> <jvmarg value="-Xmx1024M" /> <jvmarg value="-Djava.awt.headless=true" /> <classpath> <pathelement path="${sources}" /> <pathelement path="${workdir}" /> <path refid="classpath" /> </classpath> <sysproperty key="vFailIfNotSerializable" value="true" /> </java> <!-- cleanup --> <delete dir="${webroot}/VAADIN/gwt-unitCache" /> <delete dir="${webroot}/VAADIN/widgetsets/WEB-INF" /> </target> 

Classpath - The classpath of all Vaadin libraries
widgetset - The widgetet to compile is something like com.vaadin.mywidgetset
webroot - The root of the web directory where the compiled sources are located. In Eclipse, this will be the WebContent directory
sources - link to your source directory
workdir - Temporary directory for temporary location of processed files

0
source

I think you will need to debug the problem. How familiar are you with widgetset compilation? Have you configured your AppWidgetSet.gwt.xml correctly? Have you cleared all previous intermediate artifact widgets from your src directory?

(This has hurt me in the past, especially when switching from Vaadin 6 to 7. I have a specific pure maven target that I uncommented when moving versions of Vaadin to remove the directories /src/main/webapp/VAADIN/widgetsets and /src/main/webapp/VAADIN/gwt-unitCache . Otherwise, it will not completely recompile widgetset.)

Finally, did you run the Ant-specific command to recompile the Vaadin widget?

I do not like to answer this answer, but is there a specific reason why you are using Ant? If not, you can use the maven pom that is created when you create the Vaadin 7 project using the following instructions: from the wiki .

Add the following plugin command to pom.xml:

 <plugin> <artifactId>maven-clean-plugin</artifactId> <version>2.4.1</version> <configuration> <filesets> <fileset> <directory>${basedir}/src/main/webapp/VAADIN/widgetsets</directory> <directory>${basedir}/src/main/webapp/VAADIN/gwt-unitCache</directory> </fileset> </filesets> </configuration> </plugin> 

Then run: mvn clean vaadin:clean package , and everything will be fine.

0
source

All Articles