changeset 385:83f09a015be5

open-sourcing: fix font handling for javafx-ui-common unit tests
author tb115823 <Tomas.Brandalik@oracle.com>
date Wed, 08 Feb 2012 15:11:11 +0100
parents 35b50a11923a
children c4432712a894
files javafx-ui-common/build-closed.xml
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-common/build-closed.xml	Wed Feb 08 14:53:10 2012 +0100
+++ b/javafx-ui-common/build-closed.xml	Wed Feb 08 15:11:11 2012 +0100
@@ -22,4 +22,17 @@
     
     <import file="../build-defs.xml"/>
     <import file="build-common.xml"/>
+
+    <target name="test" depends="init,jar">
+      <!-- create a META-INF directory and copy over the fonts.mf file from
+         the unit test workspace. This is necessary so that the
+         FontManagerTest unit test can check that the embedded font logic
+         works -->
+      <mkdir dir="${build.test.classes.dir}/META-INF" />
+      <copy todir="${build.test.classes.dir}/META-INF"
+            file="test/unit/com/sun/javafx/scene/text/fonts.mf" />
+      <unzip src="${jfx.amble-fonts.jar}" dest="${build.test.classes.dir}" />
+      <test-project />
+  </target>
+
 </project>