vmassol 2002/07/28 14:11:56
Modified: framework build.xml
Log:
fixed bug. Now works both with clover enabled and clover disabled.
Revision Changes Path
1.22 +23 -4 jakarta-cactus/framework/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-cactus/framework/build.xml,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- build.xml 28 Jul 2002 20:51:11 -0000 1.21
+++ build.xml 28 Jul 2002 21:11:55 -0000 1.22
@@ -486,14 +486,33 @@
Run the full suite of unit tests.
========================================================================
-->
- <target name="test" depends="jar" description="Run the unit tests">
+ <target name="test.clover.prepare" if="clover.enable">
+
+ <path id="test.class.path">
+ <pathelement path="${target.classes.clover.dir}"/>
+ <pathelement path="${target.classes.test.dir}"/>
+ <path refid="project.class.path"/>
+ </path>
+
+ </target>
+
+ <target name="test.main.prepare" unless="clover.enable">
+
+ <path id="test.class.path">
+ <pathelement path="${target.classes.java.dir}"/>
+ <pathelement path="${target.classes.test.dir}"/>
+ <path refid="project.class.path"/>
+ </path>
+
+ </target>
+
+ <target name="test" depends="jar,test.clover.prepare,test.main.prepare"
+ description="Run the unit tests">
<junit printsummary="yes" haltonfailure="yes" fork="yes">
<classpath>
- <path path="${target.classes.clover.dir}"/>
- <path path="${target.classes.test.dir}"/>
- <path refid="project.class.path"/>
+ <path refid="test.class.path"/>
</classpath>
<formatter type="plain" usefile="false"/>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>