我实现了javafx独立应用。我提供了许可的 .rtf 文件。它在Windows中正确显示,但在Mac中,格式已更改,请参阅下图。为什么?我们该如何解决?
Code
< project name =“shore-abs”default =“default”basedir =“。”的xmlns:FX = “JavaFX的:com.sun.javafx.tools.ant” > 构建,测试和运行项目shore-abs。
<target name="-pre-jfx-jar" depends="copy-build-properties" />
<target name="copy-build-properties" >
<copy file="config${file.separator}abs-client-build.properties"
todir="${basedir}${file.separator}${build.classes.dir}${file.separator}/config" />
</target>
<target name="-post-jfx-deploy" depends="-check-jfx-deployment">
<fx:application id="abs-client" name="${application.title}"
mainClass="${javafx.main.class}"/>
<fx:deploy width="100" height="100" includeDT="false"
nativeBundles="all"
embeddedWidth="100%" embeddedHeight="100%"
outdir="${basedir}/${dist.dir}" embedJNLP="true"
outfile="${application.title}" verbose="true">
<fx:application refId="abs-client"/>
<fx:resources>
<fx:fileset dir="${basedir}/${dist.dir}" includes="shore-abs.jar"/>
<fx:fileset dir="${basedir}/${dist.dir}" includes="lib/**"/>
<fx:fileset type="license" dir="${basedir}" includes="license.rtf"/>
</fx:resources>
<fx:info title="${application.title}"
vendor="${application.vendor}"/>
</fx:deploy>
< /target>
&LT; /项目&GT;