JavaFX 命令行工具与 CSS 属性使用指南
1. JavaFX 命令行工具使用
1.1 运行 JavaFX 示例
由于没有与 javafx 命令对应的 Ant 任务,因此需要使用 Ant 的 exec 任务来运行 javafx 命令。以下是一个 Ant 构建脚本示例:
<!-- Runs an example given by the property "example.class" -->
<target name="run">
<condition property="example.specified">
<isset property="example.class"/>
</condition>
<fail
message="Use -Dexample.class=pkg.name to name the class to run"
unless="example.specified"/>
<exec executable="${bin.dir}/javafx">
<arg line="-classpath ${classes.dir}"/>
<arg value="${example.class}"/>
</exec>
</target>
超级会员免费看
订阅专栏 解锁全文
34

被折叠的 条评论
为什么被折叠?



