Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2014-10-02 16:53:46 -0400
committerTom Schindl2014-10-02 16:53:46 -0400
commit55380e3b65521565f4dc836a69b1b908a7f2886c (patch)
treeb9b1542a39c8945feb03ae84827503b7f768104d /demos/org.eclipse.fx.samples.fxml.compiler/build
parent3bd9848e91d9f9037c72ffe9ca9a6a593f8dd5b2 (diff)
downloadorg.eclipse.efxclipse-55380e3b65521565f4dc836a69b1b908a7f2886c.tar.gz
org.eclipse.efxclipse-55380e3b65521565f4dc836a69b1b908a7f2886c.tar.xz
org.eclipse.efxclipse-55380e3b65521565f4dc836a69b1b908a7f2886c.zip
added sample which shows usage of the fxml-compiler
Diffstat (limited to 'demos/org.eclipse.fx.samples.fxml.compiler/build')
-rw-r--r--demos/org.eclipse.fx.samples.fxml.compiler/build/build.xml135
1 files changed, 135 insertions, 0 deletions
diff --git a/demos/org.eclipse.fx.samples.fxml.compiler/build/build.xml b/demos/org.eclipse.fx.samples.fxml.compiler/build/build.xml
new file mode 100644
index 000000000..9e5377fc6
--- /dev/null
+++ b/demos/org.eclipse.fx.samples.fxml.compiler/build/build.xml
@@ -0,0 +1,135 @@
+<?xml version="1.0" encoding="UTF-8"?>
+ <project name="org.eclipse.fx.samples.fxml.compiler" default="do-deploy" basedir="." xmlns:fx="javafx:com.sun.javafx.tools.ant">
+ <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"/>
+ </target>
+ <target name="setup-staging-area">
+ <delete dir="externalLibs" />
+ <delete dir="project" />
+ <delete dir="projectRefs" />
+
+ <mkdir dir="externalLibs" />
+
+ <copy todir="externalLibs">
+ <fileset dir="/Users/tomschindl/Documents/e-workspaces/efxclipse_luna/org.eclipse.fx.samples.fxml.compiler/rlibs">
+ <filename name="org.eclipse.fx.core.fxml_1.0.0.201409260602.jar"/>
+ </fileset>
+ </copy>
+
+ <mkdir dir="project" />
+ <copy todir="project">
+ <fileset dir="/Users/tomschindl/Documents/e-workspaces/efxclipse_luna/org.eclipse.fx.samples.fxml.compiler">
+ <include name="src-gen/**" />
+ </fileset>
+ </copy>
+ <copy todir="project">
+ <fileset dir="/Users/tomschindl/Documents/e-workspaces/efxclipse_luna/org.eclipse.fx.samples.fxml.compiler">
+ <include name="src/**" />
+ </fileset>
+ </copy>
+
+ <mkdir dir="projectRefs" />
+ </target>
+ <target name='do-compile'>
+ <delete dir="build" />
+ <mkdir dir="build/src" />
+ <mkdir dir="build/libs" />
+ <mkdir dir="build/classes" />
+
+ <!-- Copy project-libs references -->
+ <copy todir="build/libs">
+ <fileset dir="externalLibs">
+ <include name="org.eclipse.fx.core.fxml_1.0.0.201409260602.jar"/>
+ </fileset>
+ </copy>
+
+ <!-- Copy project references -->
+
+ <!-- Copy project sources itself -->
+ <copy todir="build/src">
+ <fileset dir="project/src">
+ <include name="**/*"/>
+ </fileset>
+ </copy>
+ <copy todir="build/src">
+ <fileset dir="project/src-gen">
+ <include name="**/*"/>
+ </fileset>
+ </copy>
+
+ <javac includeantruntime="false" source="1.8" target="1.8" srcdir="build/src" destdir="build/classes" encoding="UTF-8">
+ <classpath>
+ <fileset dir="build/libs">
+ <include name="*"/>
+ </fileset>
+ </classpath>
+ </javac>
+
+ <!-- Copy over none Java-Files -->
+ <copy todir="build/classes">
+ <fileset dir="project/src">
+ <exclude name="**/*.java"/>
+ </fileset>
+ <fileset dir="project/src-gen">
+ <exclude name="**/*.java"/>
+ </fileset>
+ </copy>
+
+
+ </target>
+ <target name="do-deploy" depends="setup-staging-area, do-compile, init-fx-tasks">
+ <delete file="dist"/>
+ <delete file="deploy" />
+
+ <mkdir dir="dist" />
+ <mkdir dir="dist/libs" />
+
+ <copy todir="dist/libs">
+ <fileset dir="externalLibs">
+ <include name="*" />
+ </fileset>
+ </copy>
+
+
+ <fx:resources id="appRes">
+ <fx:fileset dir="dist" includes="org.eclipse.fx.samples.fxml.compiler.jar"/>
+ <fx:fileset dir="dist" includes="libs/*"/>
+ </fx:resources>
+
+ <fx:application id="fxApplication"
+ name=""
+ mainClass=""
+ />
+
+ <mkdir dir="build/classes/META-INF" />
+
+
+
+ <fx:jar destfile="dist/org.eclipse.fx.samples.fxml.compiler.jar">
+ <fx:application refid="fxApplication"/>
+ <fileset dir="build/classes">
+ </fileset>
+ <fx:resources refid="appRes"/>
+
+ <manifest>
+ <attribute name="Implementation-Vendor" value=""/>
+ <attribute name="Implementation-Title" value=""/>
+ <attribute name="Implementation-Version" value=""/>
+ <attribute name="JavaFX-Feature-Proxy" value="None"/>
+ </manifest>
+ </fx:jar>
+
+
+
+
+ </target>
+</project>

Back to the top