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

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

问题描述

我正在使用名为 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.

我使用 ant 作为我的构建脚本.你能帮我完成编译插件的步骤吗?

I am using ant as my build script. Can you some one pls help me with steps to Compile the Addon?

谢谢.

推荐答案

它很长,但迟到总比不到好.

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>

Classpath - 所有 Vaadin 库的类路径
widgetset - 需要编译的小部件集 - 类似于 com.vaadin.mywidgetset
webroot - 放置编译源的 web 目录的根目录,在 Eclipse 中它将是 WebContent 目录
sources - 引用你的源目录
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

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

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