| <project name="native-build" default="do-deploy" basedir="." xmlns:fx="javafx:com.sun.javafx.tools.ant"> | |
| <property name="eclipse-app-dir" value="../org.eclipse.emf.ecp.application.e4.fx.product/target/products/org.eclipse.emf.ecp.application.e4.fx.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}\..\jre\lib\jfxrt.jar" /> | |
| <file name="${java.home}\lib\ant-jfxrt.jar" /> | |
| <file name="C:\Program Files\Java\jdk1.8.0_60\lib\ant-javafx.jar" /> | |
| <file name="C:\Program Files\Java\jdk1.8.0_60\lib\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.emf.ecp.application.e4.fx.product/target/products/org.eclipse.emf.ecp.application.e4.fx.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="ECP e4 FX Demo" 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" verbose="true"> | |
| <fx:platform basedir="C:\Program Files\Java\jdk1.8.0_60"> | |
| <fx:property name="org.osgi.framework.bundle.parent" value="ext"/> | |
| </fx:platform> | |
| <fx:info title="ECP e4 FX Demo" vendor="Eclipse Modeling Project" /> | |
| <fx:application refid="fxApplication" /> | |
| <fx:resources refid="appRes" /> | |
| </fx:deploy> | |
| </target> | |
| </project> |