remm 01/04/21 22:47:26
Modified: httpclient build.xml
Log:
- Add first unit test.
Revision Changes Path
1.2 +16 -2 jakarta-commons-sandbox/httpclient/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/httpclient/build.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- build.xml 2001/04/20 00:01:24 1.1
+++ build.xml 2001/04/22 05:47:26 1.2
@@ -3,7 +3,7 @@
<!--
"HTTP Client" component of the Jakarta Commons Subproject
- $Id: build.xml,v 1.1 2001/04/20 00:01:24 remm Exp $
+ $Id: build.xml,v 1.2 2001/04/22 05:47:26 remm Exp $
-->
@@ -91,6 +91,7 @@
<!-- The test runner to execute -->
<property name="test.runner" value="junit.textui.TestRunner"/>
+ <property name="test.entry" value="org.apache.commons.httpclient.TestAll"/>
<!-- ========== Executable Targets ======================================== -->
@@ -197,8 +198,21 @@
<!-- ========== Unit Test Targets ========================================= -->
- <target name="test" depends="compile.tests"
+ <target name="test" depends="compile.tests" if="test.entry"
description="Run all unit test cases">
+ <!--
+ <junit printsummary="yes" fork="on" haltonfailure="yes">
+ <formatter type="plain" usefile="false"/>
+ <test name="${test.entry}"/>
+ <classpath refid="test.classpath"/>
+ </junit>
+ -->
+
+ <java classname="${test.runner}" fork="yes"
+ failonerror="${test.failonerror}">
+ <arg value="${test.entry}"/>
+ <classpath refid="test.classpath"/>
+ </java>
</target>