51 <import file="nbproject/build-impl.xml"/>
52
53 <target name="test-dir" depends="init, compile-test,-pre-test-run" if="have.tests">
54 <fail unless="test.subdir">Must set test.subdir with short name of root dir of tests; eg ListView</fail>
55 <j2seproject3:junit testincludes="javafx/scene/control/test/${test.subdir}/**/*Test.java"/>
56 </target>
57
58 <!-- javatest support -->
59 <target name="javatest" depends="compile, compile-test, run-manual"/>
60 <target name="run-manual" depends="init,dojavatest"/>
61 <target name="run-automated" depends="-post-jar, javatest-automated"/>
62 <target name="run-automated-nobuild" depends="init, dist-plugin, javatest-automated"/>
63 <target name="-post-jar" depends="compile-test, dist-plugin"/>
64
65 <!-- Prepare jars for manual testing -->
66 <target name="-post-compile-test" depends="manual-jars" />
67 <property name="content.dir" value="${basedir}/content" />
68 <target name="manual-jars" depends="init">
69 <echo message="FX-ANT=${file.reference.ant-javafx.jar}" />
70
71 <condition property="file.reference.ant-javafx.jar" value="${javafx.home}/../lib/ant-javafx.jar" else="${javafx.rt}/../lib/ant-javafx.jar">
72 <isset property="javafx.home"/>
73 </condition>
74 <echo message="debug: file.reference.ant-javafx.jar = ${file.reference.ant-javafx.jar}"/>
75
76 <taskdef resource="com/sun/javafx/tools/ant/antlib.xml"
77 uri="javafx:com.sun.javafx.tools.ant"
78 classpath="${file.reference.ant-javafx.jar}"/>
79
80 <fx:jar destfile="${content.dir}/source.jar">
81 <application mainClass="javafx.draganddrop.DragDropWithControls" name="DragAndClipboard" />
82 <fileset dir="${build.classes.dir}">
83 <include name="javafx/**" />
84 </fileset>
85 <fileset dir="${build.test.classes.dir}"/>
86 <manifest>
87 <attribute name="Implementation-Vendor" value="Oracle"/>
88 <attribute name="Implementation-Title" value="FXSQE Manual Test"/>
89 <attribute name="Implementation-Version" value="1.0"/>
90 </manifest>
91 <fx:resources>
|
51 <import file="nbproject/build-impl.xml"/>
52
53 <target name="test-dir" depends="init, compile-test,-pre-test-run" if="have.tests">
54 <fail unless="test.subdir">Must set test.subdir with short name of root dir of tests; eg ListView</fail>
55 <j2seproject3:junit testincludes="javafx/scene/control/test/${test.subdir}/**/*Test.java"/>
56 </target>
57
58 <!-- javatest support -->
59 <target name="javatest" depends="compile, compile-test, run-manual"/>
60 <target name="run-manual" depends="init,dojavatest"/>
61 <target name="run-automated" depends="-post-jar, javatest-automated"/>
62 <target name="run-automated-nobuild" depends="init, dist-plugin, javatest-automated"/>
63 <target name="-post-jar" depends="compile-test, dist-plugin"/>
64
65 <!-- Prepare jars for manual testing -->
66 <target name="-post-compile-test" depends="manual-jars" />
67 <property name="content.dir" value="${basedir}/content" />
68 <target name="manual-jars" depends="init">
69 <echo message="FX-ANT=${file.reference.ant-javafx.jar}" />
70
71 <condition property="file.reference.ant-javafx.jar" value="${javafx.home}/lib/ant-javafx.jar" else="${javafx.rt}/lib/ant-javafx.jar">
72 <isset property="javafx.home"/>
73 </condition>
74 <echo message="debug: file.reference.ant-javafx.jar = ${file.reference.ant-javafx.jar}"/>
75
76 <taskdef resource="com/sun/javafx/tools/ant/antlib.xml"
77 uri="javafx:com.sun.javafx.tools.ant"
78 classpath="${file.reference.ant-javafx.jar}"/>
79
80 <fx:jar destfile="${content.dir}/source.jar">
81 <application mainClass="javafx.draganddrop.DragDropWithControls" name="DragAndClipboard" />
82 <fileset dir="${build.classes.dir}">
83 <include name="javafx/**" />
84 </fileset>
85 <fileset dir="${build.test.classes.dir}"/>
86 <manifest>
87 <attribute name="Implementation-Vendor" value="Oracle"/>
88 <attribute name="Implementation-Title" value="FXSQE Manual Test"/>
89 <attribute name="Implementation-Version" value="1.0"/>
90 </manifest>
91 <fx:resources>
|