poi/tools/centipede/targets/test.xtarget
Nicola Ken Barozzi 07911038fe Make gump build docs even is compile fails.
Added jar generation to the gump build that was missing.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352256 13f79535-47bb-0310-9956-ffa450edef68
2002-03-19 14:34:21 +00:00

52 lines
2.1 KiB
Plaintext

<!-- =================================================================== -->
<!-- Test targets -->
<!-- =================================================================== -->
<target name="test" depends="compile" description="Perform jUnit tests">
<mkdir dir="${build.test}"/>
<!-- Copy test files to build test dir -->
<copy todir="${build.test}" filtering="on">
<fileset dir="${test.dir}/${test.specific}"/>
</copy>
<!-- Compile tests -->
<javac srcdir="${build.test}"
destdir="${build.test}"
debug="${debug}"
optimize="${optimize}"
deprecation="${deprecation}"
target="${target.vm}">
<classpath refid="classpath"/>
<classpath>
<pathelement path="${build.dest}" />
</classpath>
</javac>
<junit printsummary="yes" haltonfailure="yes" fork="yes">
<sysproperty key="UTIL.testdata.path"
value="${test.dir}/org/apache/poi/util/data"/>
<sysproperty key="HSSF.testdata.path"
value="${test.dir}/org/apache/poi/hssf/data"/>
<classpath>
<pathelement location="${build.test}" />
<pathelement location="${build.dest}" />
<pathelement path="${java.class.path}" />
</classpath>
<classpath refid="classpath"/>
<formatter type="plain" usefile="no" />
<batchtest>
<fileset dir="${build.test}">
<include name="**/test/*TestCase.class"/>
<include name="**/*Test.class" />
<include name="**/Test*.class" />
<exclude name="**/AllTest.class" />
<exclude name="**/*$$*Test.class" />
</fileset>
</batchtest>
</junit>
</target>
<!-- =================================================================== -->
<!-- Testing that all major targets work; useful before a commit -->
<!-- =================================================================== -->
<target name="testmodule" depends="clean, docs, test, javadocs"
description="Testing that all major targets work; useful before a commit ">
</target>