summaryrefslogtreecommitdiffstats
path: root/tools/cents/junit.cent/xbuild.xml
diff options
context:
space:
mode:
authorNicola Ken Barozzi <nicolaken@apache.org>2002-04-03 18:20:20 +0000
committerNicola Ken Barozzi <nicolaken@apache.org>2002-04-03 18:20:20 +0000
commit58fbe4285501ee9661e7b88273adb28ce9461fc1 (patch)
tree94fe240a4b1b99411060f3b824be31e178e948ce /tools/cents/junit.cent/xbuild.xml
parent179bb88f2e39074bce8110254a96d5da5ad0d53b (diff)
downloadpoi-58fbe4285501ee9661e7b88273adb28ce9461fc1.tar.gz
poi-58fbe4285501ee9661e7b88273adb28ce9461fc1.zip
Update of Krysalis Centipede build system to version 1.0-dev
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352314 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'tools/cents/junit.cent/xbuild.xml')
-rw-r--r--tools/cents/junit.cent/xbuild.xml118
1 files changed, 118 insertions, 0 deletions
diff --git a/tools/cents/junit.cent/xbuild.xml b/tools/cents/junit.cent/xbuild.xml
new file mode 100644
index 0000000000..0c430ea6b1
--- /dev/null
+++ b/tools/cents/junit.cent/xbuild.xml
@@ -0,0 +1,118 @@
+<?xml version="1.0"?>
+<project default="test" name="junit tests build file">
+
+ <!-- =================================================================== -->
+ <!-- Tests -->
+ <!-- =================================================================== -->
+ <target name="test" description="Perform jUnit tests">
+ <mkdir dir="${xlayout.build.test.dir}"/>
+ <!-- Compile tests -->
+ <javac srcdir="${xlayout.source.test.dir}"
+ destdir="${xlayout.build.test.dir}"
+ debug= "${build.compiler.debug}"
+ optimize= "${build.compiler.optimize}"
+ deprecation="${build.compiler.deprecation}"
+ target= "${build.compiler.vm}"
+ nowarn= "false">
+ <classpath>
+ <path>
+ <fileset dir="." casesensitive="yes">
+ <patternset>
+ <include name="${cents.dir}/*.${cent.dir.suffix}/${cent.lib.dir.name}/*.jar"/>
+ <include name="${cents.dir}/*.${cent.dir.suffix}/${cent.lib.dir.name}/*.zip"/>
+ </patternset>
+ </fileset>
+ <fileset dir="${xlayout.library.dir}" casesensitive="yes">
+ <patternset>
+ <include name="*/*.jar"/>
+ <include name="*/*.zip"/>
+ </patternset>
+ </fileset>
+ <fileset dir="${xlayout.source.scratchpad.library.dir}" casesensitive="yes">
+ <patternset>
+ <include name="*.jar"/>
+ <include name="*.zip"/>
+ </patternset>
+ </fileset>
+ <fileset dir="${xlayout.source.examples.library.dir}" casesensitive="yes">
+ <patternset>
+ <include name="*.jar"/>
+ <include name="*.zip"/>
+ </patternset>
+ </fileset>
+ </path>
+ <pathelement path="${xlayout.build.classes.dir}" />
+ </classpath>
+ </javac>
+
+ <junit2 printsummary="yes" haltonfailure="yes" fork="yes">
+
+ <formatter type="xml" />
+
+ <!--nicolaken: We gotta zap these!!! -->
+ <sysproperty key="UTIL.testdata.path"
+ value="${xlayout.source.test.dir}/org/apache/poi/util/data"/>
+ <sysproperty key="HSSF.testdata.path"
+ value="${xlayout.source.test.dir}/org/apache/poi/hssf/data"/>
+
+ <classpath>
+ <path>
+ <fileset dir="." casesensitive="yes">
+ <patternset>
+ <include name="${cents.dir}/*.${cent.dir.suffix}/${cent.lib.dir.name}/*.jar"/>
+ <include name="${cents.dir}/*.${cent.dir.suffix}/${cent.lib.dir.name}/*.zip"/>
+ </patternset>
+ </fileset>
+ <fileset dir="${xlayout.library.dir}" casesensitive="yes">
+ <patternset>
+ <include name="*/*.jar"/>
+ <include name="*/*.zip"/>
+ </patternset>
+ </fileset>
+ <fileset dir="${xlayout.source.scratchpad.library.dir}" casesensitive="yes">
+ <patternset>
+ <include name="*.jar"/>
+ <include name="*.zip"/>
+ </patternset>
+ </fileset>
+ <fileset dir="${xlayout.source.examples.library.dir}" casesensitive="yes">
+ <patternset>
+ <include name="*.jar"/>
+ <include name="*.zip"/>
+ </patternset>
+ </fileset>
+ </path>
+ <pathelement path="${xlayout.build.classes.dir}" />
+ <pathelement location="${xlayout.build.test.dir}" />
+ <pathelement location="${xlayout.build.classes.dir}" />
+ </classpath>
+
+ <batchtest todir="${xlayout.build.test.dir}">
+ <fileset dir="${xlayout.build.test.dir}">
+ <include name="**/test/*TestCase.class"/>
+ <include name="**/*Test.class" />
+ <include name="**/Test*.class" />
+ <exclude name="**/AllTest.class" />
+ <exclude name="**/*$$*Test.class" />
+ </fileset>
+ </batchtest>
+ </junit2>
+
+ </target>
+
+ <!-- =================================================================== -->
+ <!-- Test reports -->
+ <!-- =================================================================== -->
+ <target name="report" description="Perform jUnit test reports">
+ <mkdir dir="${xlayout.build.documentation.dir}"/>
+ <mkdir dir="${xlayout.build.documentation.test.dir}"/>
+
+ <junitreport todir="${xlayout.build.documentation.test.dir}">
+ <fileset dir="${xlayout.build.test.dir}">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="${xlayout.build.documentation.test.dir}"/>
+ </junitreport>
+ </target>
+
+</project> \ No newline at end of file