| <project name="native-build" default="do-deploy" basedir="." xmlns:fx="javafx:com.sun.javafx.tools.ant"> |
| <property name="eclipse-app-dir" value="../at.bestsolution.efxclipse.ecp.app.product/target/macosx.cocoa.x86_64/eclipse" /> |
| |
| <target name="init-fx-tasks"> |
| <path id="fxant"> |
| <filelist> |
| <file name="${java.home}\..\lib\ant-javafx.jar"/> |
| <file name="${java.home}\lib\jfxrt.jar"/> |
| </filelist> |
| </path> |
| |
| <taskdef resource="com/sun/javafx/tools/ant/antlib.xml" |
| uri="javafx:com.sun.javafx.tools.ant" |
| classpathref="fxant"/> |
| <taskdef name="configIni" classpath="at.bestsolution.efxclipse.tooling.build-0.0.1.jar" classname="at.bestsolution.efxclipse.tooling.build.ConfigFixTask" /> |
| </target> |
| |
| <target name="config-fix" depends="init-fx-tasks"> |
| <configIni rootfolder="${eclipse-app-dir}"/> |
| </target> |
| |
| <target name="do-deploy" depends="config-fix, init-fx-tasks"> |
| <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 for JavaFX" |
| 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="ECP for JavaFX" vendor=""/> |
| <fx:application refid="fxApplication"/> |
| <fx:resources refid="appRes"/> |
| </fx:deploy> |
| </target> |
| </project> |