| <project name="native-build" default="do-deploy" basedir="." xmlns:fx="javafx:com.sun.javafx.tools.ant"> |
| <property name="eclipse-app-dir" value="../org.eclipse.fx.testcases.dnd.app.product/target/products/org.eclipse.fx.testcases.dnd.app.product/noenv/noenv/noenv" /> |
| |
| <target name="init-fx-tasks"> |
| <taskdef name="fxosgilauncher" classpath="org.eclipse.fx.ide.ant.jar" classname="org.eclipse.fx.ide.ant.FXOsgiLaunchTask" /> |
| <path id="fxant"> |
| <filelist> |
| <file name="${java.home}\..\lib\ant-javafx.jar"/> |
| <file name="${java.home}\lib\ant-jfxrt.jar"/> |
| </filelist> |
| </path> |
| <taskdef resource="com/sun/javafx/tools/ant/antlib.xml" |
| uri="javafx:com.sun.javafx.tools.ant" |
| classpathref="fxant"/> |
| </target> |
| |
| <target name="do-deploy" depends="init-fx-tasks"> |
| <fileset id="equinox-launcher" dir="../org.eclipse.fx.testcases.dnd.app.product/target/products/org.eclipse.fx.testcases.dnd.app.product/noenv/noenv/noenv"> |
| <filename name="plugins/org.eclipse.equinox.launcher_*.jar"/> |
| </fileset> |
| <fxosgilauncher classpathref="fxant" equinoxlauncherjarref="equinox-launcher"/> |
| |
| <fx:resources id="appRes"> |
| <fx:fileset dir="." includes="fx-osgi-launch.jar"/> |
| <fx:fileset dir="${eclipse-app-dir}" includes="**/*"/> |
| </fx:resources> |
| |
| <fx:application id="fxApplication" |
| name="DnDSample" |
| mainClass="org.eclipse.equinox.launcher.Main" |
| toolkit="swing" |
| |
| /> |
| |
| <fx:deploy |
| embedJNLP="false" |
| extension="false" |
| includeDT="false" |
| offlineAllowed="true" |
| outdir="${basedir}/deploy" |
| outfile="fix-ide" |
| nativeBundles="all" |
| updatemode="background" |
| > |
| |
| <fx:info title="DnDSample" vendor=""/> |
| <fx:application refid="fxApplication"/> |
| <fx:resources refid="appRes"/> |
| </fx:deploy> |
| </target> |
| </project> |