deployment - Deploy my javafx 2 application on eclipse-SDK-4.2.1-win32-efx-0.8.0 -
i install eclipse-sdk-4.2.1-win32-efx-0.8.0 javafx developpement. make soe test , want deploy applicattion. firstly export ant , got ant file in projet
<?xml version="1.0" encoding="utf-8" standalone="no"?> <!-- warning: eclipse auto-generated file. modifications overwritten. include user specific buildfile here, create 1 in same directory processing instruction <?eclipse.ant.import?> first entry , export buildfile again. --><project basedir="." default="build" name="newtest"> <property environment="env"/> <property name="eclipse_home" value="../../"/> <property name="debuglevel" value="source,lines,vars"/> <property name="target" value="1.7"/> <property name="source" value="1.7"/> <path id="javafx sdk.libraryclasspath"> <pathelement location="c:/program files/java/jre7/lib/jfxrt.jar"/> </path> <path id="newtest.classpath"> <pathelement location="bin"/> <path refid="javafx sdk.libraryclasspath"/> <pathelement location="lib/jfxtras-labs-2.2-r4.jar"/> </path> <target name="init"> <mkdir dir="bin"/> <copy includeemptydirs="false" todir="bin"> <fileset dir="src"> <exclude name="**/*.java"/> </fileset> </copy> </target> <target name="clean"> <delete dir="bin"/> </target> <target depends="clean" name="cleanall"/> <target depends="build-subprojects,build-project" name="build"/> <target name="build-subprojects"/> <target depends="init" name="build-project"> <echo message="${ant.project.name}: ${ant.file}"/> <javac debug="true" debuglevel="${debuglevel}" destdir="bin" includeantruntime="false" source="${source}" target="${target}"> <src path="src"/> <classpath refid="newtest.classpath"/> </javac> </target> <target description="build projects reference project. useful propagate changes." name="build-refprojects"/> <target description="copy eclipse compiler jars ant lib directory" name="init-eclipse-compiler"> <copy todir="${ant.library.dir}"> <fileset dir="${eclipse_home}/plugins" includes="org.eclipse.jdt.core_*.jar"/> </copy> <unzip dest="${ant.library.dir}"> <patternset includes="jdtcompileradapter.jar"/> <fileset dir="${eclipse_home}/plugins" includes="org.eclipse.jdt.core_*.jar"/> </unzip> </target> <target description="compile project eclipse compiler" name="build-eclipse-compiler"> <property name="build.compiler" value="org.eclipse.jdt.core.jdtcompileradapter"/> <antcall target="build"/> </target> <target name="test"> <java classname="app.test" failonerror="true" fork="yes"> <classpath refid="newtest.classpath"/> </java> </target> </project>
and click on " generate ant build.xml , run" have error on console:
buildfile: d:\eclipse-sdk-4.2.1-win32-efx-0.8.0\eclipse\myworkplace\newtest\build\build.xml setup-staging-area: [delete] deleting directory d:\eclipse-sdk-4.2.1-win32-efx-0.8.0\eclipse\myworkplace\newtest\build\externallibs [delete] deleting directory d:\eclipse-sdk-4.2.1-win32-efx-0.8.0\eclipse\myworkplace\newtest\build\project [delete] deleting directory d:\eclipse-sdk-4.2.1-win32-efx-0.8.0\eclipse\myworkplace\newtest\build\projectrefs [mkdir] created dir: d:\eclipse-sdk-4.2.1-win32-efx-0.8.0\eclipse\myworkplace\newtest\build\externallibs [copy] copying 1 file d:\eclipse-sdk-4.2.1-win32-efx-0.8.0\eclipse\myworkplace\newtest\build\externallibs [mkdir] created dir: d:\eclipse-sdk-4.2.1-win32-efx-0.8.0\eclipse\myworkplace\newtest\build\project [copy] copying 2 files d:\eclipse-sdk-4.2.1-win32-efx-0.8.0\eclipse\myworkplace\newtest\build\project [mkdir] created dir: d:\eclipse-sdk-4.2.1-win32-efx-0.8.0\eclipse\myworkplace\newtest\build\projectrefs do-compile: [delete] deleting directory d:\eclipse-sdk-4.2.1-win32-efx-0.8.0\eclipse\myworkplace\newtest\build\build [mkdir] created dir: d:\eclipse-sdk-4.2.1-win32-efx-0.8.0\eclipse\myworkplace\newtest\build\build\src [mkdir] created dir: d:\eclipse-sdk-4.2.1-win32-efx-0.8.0\eclipse\myworkplace\newtest\build\build\libs [mkdir] created dir: d:\eclipse-sdk-4.2.1-win32-efx-0.8.0\eclipse\myworkplace\newtest\build\build\classes [copy] copying 1 file d:\eclipse-sdk-4.2.1-win32-efx-0.8.0\eclipse\myworkplace\newtest\build\build\libs [copy] copying 2 files d:\eclipse-sdk-4.2.1-win32-efx-0.8.0\eclipse\myworkplace\newtest\build\build\src [javac] compiling 2 source files d:\eclipse-sdk-4.2.1-win32-efx-0.8.0\eclipse\myworkplace\newtest\build\build\classes init-fx-tasks: [taskdef] not load definitions resource com/sun/javafx/tools/ant/antlib.xml. not found. do-deploy: [copy] copying 1 file d:\eclipse-sdk-4.2.1-win32-efx-0.8.0\eclipse\myworkplace\newtest\build\dist\libs build failed d:\eclipse-sdk-4.2.1-win32-efx-0.8.0\eclipse\myworkplace\newtest\build\build.xml:93: problem: failed create task or type javafx:com.sun.javafx.tools.ant:resources cause: name undefined. action: check spelling. action: check custom tasks/types have been declared. action: check <presetdef>/<macrodef> declarations have taken place. no types or tasks have been defined in namespace yet total time: 14 seconds
i don't know in ant please what's problem? thanks
so tells can't load javafx ant extensions
could not load definitions resource com/sun/javafx/tools/ant/antlib.xml. not found. do-deploy:
why didn't use build.fxbuild file generate ant file?
Comments
Post a Comment