Browse Source

Add a build target to run the newly added tests

Submitted By: "Adam Murdoch" <adammurdoch_ml@yahoo.com>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270824 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
d0042ba437
1 changed files with 24 additions and 0 deletions
  1. +24
    -0
      proposal/myrmidon/build.xml

+ 24
- 0
proposal/myrmidon/build.xml View File

@@ -59,6 +59,8 @@ Legal:
<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 @@ Legal:
</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 @@ Legal:
</delete>
</target>

<!-- Rebuilds the distribution -->
<target name="rebuild">
<antcall target="clean"/>
<antcall target="main"/>


Loading…
Cancel
Save