aboutsummaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorVincent Hennebert <vhennebert@apache.org>2011-10-20 15:38:54 +0000
committerVincent Hennebert <vhennebert@apache.org>2011-10-20 15:38:54 +0000
commitae7c3b4bd8c7e1eca36dd5963d2b28dfad43bda2 (patch)
tree4e5c427725f9911b60f36dd746f5d04c0bbcac29 /build.xml
parent9860d5a1338df6ad70e269d2423e7059c9194102 (diff)
downloadxmlgraphics-fop-ae7c3b4bd8c7e1eca36dd5963d2b28dfad43bda2.tar.gz
xmlgraphics-fop-ae7c3b4bd8c7e1eca36dd5963d2b28dfad43bda2.zip
Cache the schema for the XML namespace to a local directory. This avoids downloading it from the W3C website every time the IF test cases are run.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1186858 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml26
1 files changed, 22 insertions, 4 deletions
diff --git a/build.xml b/build.xml
index a7e548a53..542ff25de 100644
--- a/build.xml
+++ b/build.xml
@@ -836,11 +836,29 @@ list of possible build targets.
<target name="junit-area-tree-xml-format" depends="junit-compile" description="Runs FOP's area tree XML format JUnit tests" if="xmlunit.present">
<junit-run title="area tree XML format" testsuite="org.apache.fop.intermediate.AreaTreeXMLFormatTestSuite" outfile="TEST-area-tree-xml-format"/>
</target>
- <target name="junit-intermediate-layout" depends="junit-compile" if="xmlunit.present">
- <junit-run title="intermediate format from layout tests" testsuite="org.apache.fop.intermediate.LayoutIFTestSuite" outfile="TEST-intermediate-format-from-layout"/>
+ <target name="junit-intermediate-layout" depends="junit-compile,setup-xml-schema"
+ if="xmlunit.present">
+ <junit-run title="intermediate format from layout tests"
+ testsuite="org.apache.fop.intermediate.LayoutIFTestSuite"
+ outfile="TEST-intermediate-format-from-layout"/>
+ </target>
+ <target name="setup-xml-schema">
+ <local name="cache-dir"/>
+ <property name="cache-dir" value="${basedir}/.cache/junit/intermediate"/>
+ <mkdir dir="${cache-dir}"/>
+ <get src="http://www.w3.org/2001/xml.xsd"
+ dest="${cache-dir}/xml.xsd"
+ usetimestamp="true"/>
+ <copy file="${cache-dir}/xml.xsd"
+ todir="${build.dir}/test-classes/org/apache/fop/intermediate"/>
</target>
- <target name="junit-intermediate-format" depends="junit-compile,junit-intermediate-layout" description="Runs FOP's intermediate format JUnit tests" if="xmlunit.present">
- <junit-run title="intermediate format" testsuite="org.apache.fop.intermediate.IntermediateFormatTestSuite" outfile="TEST-intermediate-format"/>
+
+ <target name="junit-intermediate-format"
+ depends="junit-compile,setup-xml-schema,junit-intermediate-layout"
+ description="Runs FOP's intermediate format JUnit tests" if="xmlunit.present">
+ <junit-run title="intermediate format"
+ testsuite="org.apache.fop.intermediate.IntermediateFormatTestSuite"
+ outfile="TEST-intermediate-format"/>
</target>
<target name="junit-events" depends="junit-compile" description="Runs FOP's event JUnit tests" if="junit.present">
<junit-run title="event" basedir="test/events" testsuite="org.apache.fop.events.EventProcessingTestCase" outfile="TEST-events"/>