62 <target name="run" depends="Ensemble8-impl.jar">
63 <exec dir="bin" executable="launcher.exe">
64 <arg file="${dist.jar}"/>
65 </exec>
66 </target>
67
68 Notice that the overridden target depends on the jar target and not only on
69 the compile target as the regular run target does. Again, for a list of available
70 properties which you can use, check the target you are overriding in the
71 nbproject/build-impl.xml file.
72
73 -->
74 <target name="-pre-init">
75 <!-- exclude samples that are not part of the base JavaFX -->
76 <condition property="excludes" value="ensemble/samples/language/swing/**">
77 <isset property="JFX_CORE_ONLY"/>
78 </condition>
79 </target>
80
81 <!-- COPY SAMPLE SRC TO BUILD DIR -->
82 <target name="-pre-compile" depends="-copy-cssref">
83 <echo>Copying all sample source files to build dir</echo>
84 <copy todir="${build.classes.dir}">
85 <fileset dir="${basedir}/src/samples/java">
86 <include name="**/samples/**/*.java"/>
87 <include name="**/*.js"/> <!-- include javascript files -->
88 </fileset>
89 </copy>
90 </target>
91
92 <property name="javafx.scene.doc-files.dir" location="${basedir}/../../../modules/javafx.graphics/src/main/docs/javafx/scene/doc-files"/>
93 <condition property="javafx.scene.doc-files.exists">
94 <available file="${javafx.scene.doc-files.dir}" type="dir"/>
95 </condition>
96
97 <target name="-copy-cssref" if="javafx.scene.doc-files.exists">
98 <mkdir dir="${build.cssref.dir}"/>
99 <copy todir="${build.cssref.dir}">
100 <fileset dir="${javafx.scene.doc-files.dir}">
101 <include name="cssref.html"/>
102 <include name="cssexample1.png"/>
103 <include name="cssexample2.png"/>
104 <include name="fx_code_header.jpg"/>
105 </fileset>
106 </copy>
107 <replaceregexp
108 file="${build.cssref.dir}/cssref.html"
109 match="http://download.java.net/java/jdk9/docs/legal/cpyr.html"
110 replace="http://www.oracle.com/technetwork/java/javase/terms/license/oraclebsd-1603217.txt"
111 byline="true"/>
112 </target>
113
114 <!-- DON'T INCLUDE COMPILE TIME CODE IN APP JAR -->
115 <target name="-pre-jar">
116 <delete dir="${build.classes.dir}/ensemble/compiletime"/>
117 </target>
118
119 <!-- COPY LIBS INTO JAR FILE: so that we have a simple single jar application -->
120 <target name="-post-jar" depends="jfx-deployment">
121 <zip destfile="${dist.jar}" update="true">
122 <zipfileset src="${file.reference.lucene-core-3.2.0.jar}"/>
123 <zipfileset src="${file.reference.lucene-grouping-3.2.0.jar}"/>
124 </zip>
125 </target>
126
127 <target name="ensemble-generate-samples-class" depends="init,compile" description="Ensemble: Generate source for all samples data class.">
128 <java classname="ensemble.compiletime.EnsembleCompiletimeMain" fork="true">
129 <arg value="samples"/>
130 <classpath>
131 <pathelement location="${build.classes.dir}"/>
|
62 <target name="run" depends="Ensemble8-impl.jar">
63 <exec dir="bin" executable="launcher.exe">
64 <arg file="${dist.jar}"/>
65 </exec>
66 </target>
67
68 Notice that the overridden target depends on the jar target and not only on
69 the compile target as the regular run target does. Again, for a list of available
70 properties which you can use, check the target you are overriding in the
71 nbproject/build-impl.xml file.
72
73 -->
74 <target name="-pre-init">
75 <!-- exclude samples that are not part of the base JavaFX -->
76 <condition property="excludes" value="ensemble/samples/language/swing/**">
77 <isset property="JFX_CORE_ONLY"/>
78 </condition>
79 </target>
80
81 <!-- COPY SAMPLE SRC TO BUILD DIR -->
82 <target name="-pre-compile" depends="-copy-cssref,-copy-legal">
83 <echo>Copying all sample source files to build dir</echo>
84 <copy todir="${build.classes.dir}">
85 <fileset dir="${basedir}/src/samples/java">
86 <include name="**/samples/**/*.java"/>
87 <include name="**/*.js"/> <!-- include javascript files -->
88 </fileset>
89 </copy>
90 </target>
91
92 <property name="javafx.scene.doc-files.dir" location="${basedir}/../../../modules/javafx.graphics/src/main/docs/javafx/scene/doc-files"/>
93 <condition property="javafx.scene.doc-files.exists">
94 <available file="${javafx.scene.doc-files.dir}" type="dir"/>
95 </condition>
96
97 <target name="-copy-cssref" if="javafx.scene.doc-files.exists">
98 <mkdir dir="${build.cssref.dir}"/>
99 <copy todir="${build.cssref.dir}">
100 <fileset dir="${javafx.scene.doc-files.dir}">
101 <include name="cssref.html"/>
102 <include name="cssexample1.png"/>
103 <include name="cssexample2.png"/>
104 <include name="fx_code_header.jpg"/>
105 </fileset>
106 </copy>
107 <replaceregexp
108 file="${build.cssref.dir}/cssref.html"
109 match="http://download.java.net/java/jdk9/docs/legal/cpyr.html"
110 replace="http://www.oracle.com/technetwork/java/javase/terms/license/oraclebsd-1603217.txt"
111 byline="true"/>
112 </target>
113
114 <target name="-copy-legal">
115 <mkdir dir="${build.legal.dir}"/>
116 <copy todir="${build.legal.dir}">
117 <fileset dir="${legal.dir}"/>
118 </copy>
119 </target>
120
121 <!-- DON'T INCLUDE COMPILE TIME CODE IN APP JAR -->
122 <target name="-pre-jar">
123 <delete dir="${build.classes.dir}/ensemble/compiletime"/>
124 </target>
125
126 <!-- COPY LIBS INTO JAR FILE: so that we have a simple single jar application -->
127 <target name="-post-jar" depends="jfx-deployment">
128 <zip destfile="${dist.jar}" update="true">
129 <zipfileset src="${file.reference.lucene-core-3.2.0.jar}"/>
130 <zipfileset src="${file.reference.lucene-grouping-3.2.0.jar}"/>
131 </zip>
132 </target>
133
134 <target name="ensemble-generate-samples-class" depends="init,compile" description="Ensemble: Generate source for all samples data class.">
135 <java classname="ensemble.compiletime.EnsembleCompiletimeMain" fork="true">
136 <arg value="samples"/>
137 <classpath>
138 <pathelement location="${build.classes.dir}"/>
|