0
我已經閱讀過文檔,但是我找不到使其工作,我正在使用最新的JDK/Eclipse/Debian。JavaFX ANT構建器不能正常工作
這裏是我的build.xml
<project name="PMRx" default="default" basedir="."
xmlns:fx="javafx:com.sun.javafx.tools.ant">
<property name="src.dir" location="src" />
<property name="build.dir" location="build" />
<property name="dist.dir" location="dist" />
<property name="docs.dir" location="docs" />
<property name="application.vendor.dir" location="Comelecinca" />
<property name="application.title.dir" location="PMRx" />
<property name="build.classes.dir" location="build/classes" />
<property name="certification.dir" location="/home/rafael/Workspace/Certification" />
<property name="application.title" location="Sistema de Monitoreo Remoto" />
<target name="default">
<taskdef resource="com/sun/javafx/tools/ant/antlib.xml" uri="javafx:com.sun.javafx.tools.ant"
classpath=".:/usr/lib/jvm/java-7-oracle/lib/ant-javafx.jar" />
<!-- Details about application -->
<fx:application id="PMRx" name="Sistema de Monitoreo Remoto"
mainClass="pmrx.Ventana" />
<!-- Define what auxilary resources are needed -->
<fx:resources id="appRes">
<fx:fileset dir="dist" includes="lib/*.jar" />
</fx:resources>
<fx:jar destfile="${dist.dir}/pmrx.jar">
<!-- Define what to launch -->
<fx:application refid="PMRx" />
<!-- Define what classpath to use -->
<fx:resources refid="appRes" />
<manifest>
<attribute name="Implementation-Vendor" value="${application.vendor}" />
<attribute name="Implementation-Title" value="${application.title}" />
<attribute name="Implementation-Version" value="1.0" />
</manifest>
<!-- Define what files to include -->
<fileset dir="${build.classes.dir}" />
</fx:jar>
<fx:signjar keyStore="${certification.dir}/sopc.crt"
destdir="dist" alias="comelecinca" storePass="951753" keyPass="951753">
<fileset dir='dist/*.jar' />
</fx:signjar>
<fx:deploy outdir="${dist.dir}" embedJNLP="true"
outfile="${application.title}">
<fx:application refId="PMRx" />
<fx:resources refid="appRes" />
<fx:info title="Sample app: ${application.title}" vendor="${application.vendor}" />
<!-- Request elevated permissions -->
<fx:permissions elevated="true" />
</fx:deploy>
</target>
這是我得到的錯誤:
BUILD FAILED
/home/rafael/Workspace/PMRx/build.xml:19: All filesets are empty.
至極將corresponder到行:
<fx:jar destfile="${dist.dir}/pmrx.jar">
這正在讓我瘋狂,比ks in advanced!
你有什麼'〜/ Workspace/PMRx/build/classes'嗎? – 2013-03-20 07:09:27