Browse Source

Let users override whether the <junit> tasks fork or not (default is no).

Submitted by:	Vincent Bergbauer <vincent_bergbauer@yahoo.com>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268132 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 24 years ago
parent
commit
19fe1e5a69
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      build.xml

+ 7
- 2
build.xml View File

@@ -33,8 +33,13 @@
<property name="packages" value="org.apache.tools.*"/>
<property name="manifest" value="src/etc/manifest"/>


<!-- =================================================================== -->
<!-- Set some the defaults the user can override in .ant.properties -->
<!-- =================================================================== -->
<property name="build.compiler" value="classic"/>
<property name="build.compiler.emacs" value="on"/>
<property name="junit.fork" value="false" />

<!-- =================================================================== -->
<!-- Define a global set of patterns that can be referenced by -->
@@ -326,7 +331,7 @@
<!-- Run testcase -->
<!-- =================================================================== -->
<target name="runtests" depends="compiletests" if="junit.present">
<junit printsummary="no" haltonfailure="yes">
<junit printsummary="no" haltonfailure="yes" fork="${junit.fork}">
<classpath>
<pathelement location="${lib.dir}/${name}.jar" />
<pathelement location="${build.tests}" />
@@ -358,7 +363,7 @@
</target>

<target name="run.single.test" if="testcase" depends="compiletests">
<junit printsummary="no" haltonfailure="yes">
<junit printsummary="no" haltonfailure="yes" fork="${junit.fork}">
<classpath>
<pathelement location="${lib.dir}/${name}.jar" />
<pathelement location="${build.tests}" />


Loading…
Cancel
Save