编译Vaadin插件使用Ant [英] Compiling Vaadin Addon using Ant

查看:284
本文介绍了编译Vaadin插件使用Ant的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用添加名为ICEPush推数据异步客户端。顺便说一句,我使用vaadin 7.当过我打开网页,它抛出我下面的错误

I am using add on called ICEPush to push data Async to the client. BTW I am using vaadin 7. when ever I open the page it throws me the following error

Widgetset does not contain implementation for org.vaadin.artur.icepush.ICEPush. Check its component connector's @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 am using ant as my build script. Can you some one pls help me with steps to Compile the Addon?

感谢。

推荐答案

它的pretty长,但更好的后期则从来没有。

Its Pretty long, but better late then never.

我创建这对我的消息来源的依赖一个新的任务。

I created a new task which has dependency 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>

类路径 - 所有Vaadin库的类路径

视窗元件 - 视窗元件需要进行编译 - 将像 com.vaadin.mywidgetset

根目录 - 网页目录的根在哪里编译源放置在Eclipse这将是的WebContent 目录

来源 - 引用源目录

WORKDIR - 临时目录来临时将处理文件

Classpath - Classpath of all Vaadin libraries
widgetset - Widgetset that needs to be compiled - would be something like com.vaadin.mywidgetset
webroot - Root of web directory where compiled sources are placed, In Eclipse it would be WebContent directory
sources - reference to your source directory
workdir - Temporary directory to place processed files temporarily

这篇关于编译Vaadin插件使用Ant的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆