donaldp 02/01/22 03:16:43
Modified: proposal/myrmidon build.xml
Log:
Add a build target to run the newly added tests
Submitted By: "Adam Murdoch" <[EMAIL PROTECTED]>
Revision Changes Path
1.41 +24 -0 jakarta-ant/proposal/myrmidon/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/build.xml,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- build.xml 19 Jan 2002 07:41:47 -0000 1.40
+++ build.xml 22 Jan 2002 11:16:43 -0000 1.41
@@ -59,6 +59,8 @@
<property name="dist.lib" value="${dist.dir}/lib"/>
<property name="dist.ext" value="${dist.dir}/ext"/>
+ <property name="test.classes" value="${build.dir}/test/classes"/>
+
<property name="constants.file"
value="org/apache/myrmidon/Constants.java"/>
<path id="project.class.path">
@@ -425,6 +427,27 @@
</xdoclet>
</target>
+ <!-- Compiles and runs the unit tests -->
+ <target name="test" depends="compile" if="junit.present">
+ <mkdir dir="${test.classes}"/>
+ <javac srcdir="src/testcases"
+ destdir="${test.classes}"
+ debug="${debug}"
+ optimize="${optimize}"
+ deprecation="${deprecation}">
+ <classpath refid="project.class.path"/>
+ </javac>
+ <junit printsummary="on"
+ fork="false">
+ <formatter type="brief" usefile="false"/>
+ <classpath refid="project.class.path"/>
+ <classpath location="${test.classes}"/>
+ <batchtest>
+ <fileset dir="${test.classes}" includes="**/*Test.class"/>
+ </batchtest>
+ </junit>
+ </target>
+
<!-- Creates the distribution -->
<target name="dist" depends="jars">
@@ -477,6 +500,7 @@
</delete>
</target>
+ <!-- Rebuilds the distribution -->
<target name="rebuild">
<antcall target="clean"/>
<antcall target="main"/>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>