gpt4 book ai didi

java - 从命令行编译 vaadin widgetset

转载 作者:行者123 更新时间:2023-12-02 01:10:08 25 4
gpt4 key购买 nike

在 eclipse 中有一个 vaadin 插件。 enter image description here

当在项目中标记*.widgetset文件并单击编译vaading widgetset时,它会在WebContent\VAADIN\widgetsets下编译widgetset。所以我的问题是如何在没有 Eclipse 的情况下从命令行执行此操作?注意:我已经搜索过了,但是有maven的例子。这是老项目,里面没有maven配置

最佳答案

您没有说您正在使用哪个 Vaadin 版本,但至少在 Vaadin7 中的编译器类似乎是这样的: https://vaadin.com/api/framework/7.6.8/com/vaadin/tools/WidgetsetCompiler.html

不确定命令行,但我有 Vaadin7 的这种 ANT 脚本,也许它会有所帮助:

<target name="compile-widgetset" depends="init,resolve">
<delete includeEmptyDirs="true">
<fileset dir="${basedir}/WebContent/VAADIN/gwt-unitCache/" includes="**/*" defaultexcludes="no"/>
</delete>
<java classname="com.vaadin.tools.WidgetsetCompiler" failonerror="yes" fork="yes" maxmemory="600m">
<jvmarg value="-Xms512M"/>
<jvmarg value="-Xmx1024M"/>
<jvmarg value="-Xss8M"/>
<jvmarg value="-Djava.awt.headless=true" />
<arg value="-war"/>
<arg value="WebContent/VAADIN/widgetsets"/>
<arg value="${widgetset}"/>
<arg value="-logLevel"/>
<arg value="DEBUG"/>
<arg value="-style"/>
<arg value="OBF"/>

<classpath>
<pathelement path="${module.src.dir}"/>
<pathelement path="${module.build.dir}/WebContent/WEB-INF/classes" />
<pathelement path="${module.build.dir}/WebContent/WEB-INF/lib" />
<path refid="widgetset.path"/>
</classpath>
</java>
</target>

编译指令:https://vaadin.com/docs/v7/framework/clientside/clientside-compiling.html

关于java - 从命令行编译 vaadin widgetset,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59529973/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com