aboutsummaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-01-06 19:20:37 +0000
committerJeremias Maerki <jeremias@apache.org>2005-01-06 19:20:37 +0000
commit68bf7a4b39b7f4dfb869508ee5e3b60a5df9bf57 (patch)
tree84bb61b733d3f2147cdf96691a1222133e69efdd /build.xml
parentff621479067fd6847bfc0ce2db82797e851633c8 (diff)
downloadxmlgraphics-fop-68bf7a4b39b7f4dfb869508ee5e3b60a5df9bf57.tar.gz
xmlgraphics-fop-68bf7a4b39b7f4dfb869508ee5e3b60a5df9bf57.zip
Fork JUnit test in new VM. (Maybe this fixes classpath problems with commons-logging when Xalan compiles again).
Added layout engine tests specifying a default exclusion file. To disable the exclusion file add the following line to your build-local.properties: layoutengine.disabled= git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198243 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml31
1 files changed, 25 insertions, 6 deletions
diff --git a/build.xml b/build.xml
index fa5ce1553..cdcaf9cb3 100644
--- a/build.xml
+++ b/build.xml
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<!--
- Copyright 1999-2004 The Apache Software Foundation
+ Copyright 1999-2005 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -168,7 +168,7 @@ list of possible build targets.
<property name="NAME" value="FOP"/>
<property name="version" value="1.0dev"/>
<filter token="version" value="${version}"/>
- <property name="year" value="1999-2004"/>
+ <property name="year" value="1999-2005"/>
<echo message="------------------- ${Name} ${version} [${year}] ----------------"/>
<echo message="See build.properties and build-local.properties for additional build settings"/>
@@ -177,7 +177,7 @@ list of possible build targets.
<property name="debug" value="on"/>
<property name="optimize" value="off"/>
<property name="deprecation" value="on"/>
-
+
<property name="textfontencoding" value="WinAnsiEncoding"/>
<property name="src.dir" value="${basedir}/src"/>
@@ -673,7 +673,7 @@ list of possible build targets.
</javac>
<echo message="Running basic functionality tests for fop-transcoder.jar"/>
<mkdir dir="${build.dir}/test-reports/fop-transcoder"/>
- <junit haltonerror="yes">
+ <junit haltonerror="yes" fork="${junit.fork}">
<sysproperty key="basedir" value="${basedir}"/>
<formatter type="brief" usefile="false"/>
<classpath>
@@ -691,7 +691,7 @@ list of possible build targets.
</junit>
<echo message="Running basic functionality tests for fop-transcoder-allinone.jar"/>
<mkdir dir="${build.dir}/test-reports/fop-transcoder-allinone"/>
- <junit haltonerror="yes">
+ <junit haltonerror="yes" fork="${junit.fork}">
<sysproperty key="basedir" value="${basedir}"/>
<formatter type="brief" usefile="false"/>
<classpath>
@@ -711,7 +711,7 @@ list of possible build targets.
</junit>
<echo message="Running basic functionality tests for fop.jar"/>
<mkdir dir="${build.dir}/test-reports/fop"/>
- <junit haltonerror="yes">
+ <junit haltonerror="yes" fork="${junit.fork}">
<sysproperty key="basedir" value="${basedir}"/>
<formatter type="brief" usefile="false"/>
<classpath>
@@ -728,6 +728,25 @@ list of possible build targets.
</fileset>
</batchtest>
</junit>
+ <echo message="Running layout engine tests"/>
+ <mkdir dir="${build.dir}/test-reports/fop"/>
+ <junit haltonerror="yes" fork="${junit.fork}">
+ <sysproperty key="basedir" value="${basedir}"/>
+ <sysproperty key="fop.layoutengine.disabled" value="${layoutengine.disabled}"/>
+ <formatter type="brief" usefile="false"/>
+ <classpath>
+ <pathelement location="${build.dir}/test-classes"/>
+ <path refid="libs-build-classpath"/>
+ <fileset dir="build">
+ <include name="fop.jar"/>
+ </fileset>
+ </classpath>
+ <batchtest todir="${build.dir}/test-reports/fop">
+ <fileset dir="${build.dir}/test-classes">
+ <include name="org/apache/fop/layoutengine/LayoutEngineTestSuite.class"/>
+ </fileset>
+ </batchtest>
+ </junit>
</target>
<!-- =================================================================== -->