Hi all,
i try to run an antscript that compiles the widgetset. I need this because i don’t have a vaadin nor ivy project so i can not use the ivy template nor the Eclipse plugin.
I have following ant tasks:
<!-- Modify this configuration to compile your own widgetset -->
<target name="configure-widgetset" depends="configure">
<property name="widgetset" value="test.CombinedWidgetSet"/>
<property name="generate.widgetset" value="1"/>
<property name="widgetset-path" value="xpoy-test/widgetset"/>
</target>
<!-- Generates a combined widget set from all widget -->
<!-- sets in the class path, including project sources. -->
<!-- Updates the configuration if it already exists. -->
<target name="generate-widgetset" depends="configure, configure-widgetset" >
<property name="myproperty" refid="my.classpath"/>
<echo> Base: ${base}" </echo>
<echo> MyPropClassPath: ${myproperty}" </echo>
<echo> SRC: ${src-location}" </echo>
<!-- Create the directory if it does not already exist. -->
<mkdir dir="${src-location}/${widgetset-path}"/>
<java classname="com.vaadin.server.widgetsetutils.WidgetSetBuilder"
failonerror="yes" fork="yes" maxmemory="256m">
<arg value="${widgetset}"/>
<jvmarg value="-Xss1024k"/>
<jvmarg value="-Djava.awt.headless=true"/>
<classpath refid="my.classpath"/>
</java>
</target>
I get following NullPointer:
[java]
Mrz 20, 2013 7:58:39 PM com.vaadin.server.widgetsetutils.ClassPathExplorer getAvailableWidgetSets
[java]
INFO: Widgetsets found from classpath:
[java]
com.vaadin.DefaultWidgetSet in jar:file:E:/workspace/amos_server/stdclasses/unpublic/vaadin-client-7.0.1.jar!/
[java]
org.vaadin.tokenfield.TokenfieldWidgetset in jar:file:E:/workspace/amos_server/stdclasses/vaadin/tokenfield-7.0.1.jar!/
[java]
org.vaadin.passwordfield.PasswordFieldWidgetset in jar:file:E:/workspace/amos_server/stdclasses/vaadin/passwordfield-7.0.0.jar!/
[java]
Mrz 20, 2013 7:58:39 PM com.vaadin.server.widgetsetutils.ClassPathExplorer getAvailableWidgetSets
[java]
INFO: Search took 16ms
[java]
Exception in thread "main" java.lang.NullPointerException
[java]
at com.vaadin.server.widgetsetutils.WidgetSetBuilder.updateWidgetSet(WidgetSetBuilder.java:70)
[java]
at com.vaadin.server.widgetsetutils.WidgetSetBuilder.main(WidgetSetBuilder.java:52)
Anybody a clue how I have to configure this?
Do I have to create an *.gwt.xml or does it create one itself? And if I create one where do I have to put it?
Thansk for any Help and Hints
Marc