| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Copyright (c) 2013 BREDEX GmbH. |
| All rights reserved. This program and the accompanying materials |
| are made available under the terms of the Eclipse Public License v1.0 |
| which accompanies this distribution, and is available at |
| http://www.eclipse.org/legal/epl-v10.html |
| --> |
| <project name="PieChart" default="build" basedir="." xmlns:fx="javafx:com.sun.javafx.tools.ant"> |
| |
| <property name="java8.jdk.home" value="/devapps/java/java8" /> |
| <property name="source.dir" value="src" /> |
| <property name="out.dir" value="build" /> |
| <property name="out.dir.classes" value="${out.dir}/classes" /> |
| <property name="out.dir.jars" value="${out.dir}/jars" /> |
| <property name="app.jar.name" value="PieChart.jar" /> |
| |
| <target name="default"> |
| <path id="classpath"> |
| <filelist> |
| <file name="${java8.jdk.home}/lib/ant-javafx.jar" /> |
| <file name="${java8.jdk.home}/lib/javafx-mx.jar" /> |
| </filelist> |
| </path> |
| |
| <taskdef resource="com/sun/javafx/tools/ant/antlib.xml" uri="javafx:com.sun.javafx.tools.ant" classpathref="classpath" /> |
| </target> |
| |
| <target name="clean"> |
| <delete dir="${out.dir}" /> |
| </target> |
| |
| <target name="init" depends="clean"> |
| <mkdir dir="${out.dir}" /> |
| <mkdir dir="${out.dir.classes}" /> |
| <mkdir dir="${out.dir.jars}" /> |
| </target> |
| |
| <target name="compile" depends="default, init"> |
| <javac |
| fork="true" |
| executable="${java8.jdk.home}/bin/javac" |
| includeantruntime="false" |
| srcdir="${source.dir}" |
| destdir="${out.dir}/classes" |
| classpathref="classpath" |
| source="1.8" |
| target="1.8" |
| debug="true" |
| /> |
| </target> |
| |
| <target name="build" depends="compile"> |
| <fx:application id="PieChart" mainClass="it.is.valid.that.this.class.does.not.exist.however.the.attribute.value.is.mandatory" /> |
| <fx:jar destfile="${out.dir.jars}/${app.jar.name}"> |
| <fx:application refid="PieChart" /> |
| |
| <manifest> |
| <attribute name="Implementation-Title" value="PieChart" /> |
| <attribute name="JavaFX-Application-Class" value="org.eclipse.jubula.examples.extension.javafx.aut.PieChartExampleAUT"/> |
| </manifest> |
| |
| <fileset dir="${out.dir.classes}" /> |
| </fx:jar> |
| </target> |
| </project> |