Browse Source

Changed the prefix for the optional jars with external deps to

ant-. It's just cosmetic - if you feel 'need' is better I'm fine.

Also added a property to customize haltonfailure - sometimes it's
nice to run all tests and then look at the logs and see all failures.
Plus a quick way to run a test without a full rebuild.

Again - if you see any problem, I can revert.


PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273464 13f79535-47bb-0310-9956-ffa450edef68
master
Costin Manolache 22 years ago
parent
commit
5475bbd098
1 changed files with 8 additions and 4 deletions
  1. +8
    -4
      build.xml

+ 8
- 4
build.xml View File

@@ -46,6 +46,7 @@
<property name="etc.dir" value="src/etc"/>
<property name="tests.dir" value="src/testcases"/>
<property name="tests.etc.dir" value="src/etc/testcases"/>
<property name="test.haltonfailure" value="yes" />

<property name="ant.package" value="org/apache/tools/ant"/>
<property name="optional.package" value="${ant.package}/taskdefs/optional"/>
@@ -71,7 +72,7 @@
<property name="build.tests" value="${build.dir}/testcases"/>
<property name="build.tests.javadocs" value="${build.dir}/javadocs.test/"/>
<property name="manifest.tmp" value="${build.dir}/optional.manifest"/>
<property name="optional.jars.prefix" value="needs"/>
<property name="optional.jars.prefix" value="ant"/>

<path id="classpath">
</path>
@@ -1422,7 +1423,7 @@
</or>
</condition>

<junit printsummary="${junit.summary}" haltonfailure="yes"
<junit printsummary="${junit.summary}" haltonfailure="${test.haltonfailure}"
filtertrace="${junit.filtertrace}"
fork="${junit.fork}">
<!-- <jvmarg value="-classic"/> -->
@@ -1539,12 +1540,15 @@
</junit>
</target>

<target name="run-single-test" if="testcase" depends="compile-tests"
<target name="run-single-test" if="testcase" depends="compile-tests,run-single-test-only"
description="--> runs the single unit test defined in the testcase property"/>

<target name="run-single-test-only"
description="--> runs the single unit test defined in the testcase property">


<junit printsummary="${junit.summary}"
haltonfailure="yes"
haltonfailure="${test.haltonfailure}"
fork="${junit.fork}"
filtertrace="${junit.filtertrace}">
<!-- <jvmarg value="-classic"/> -->


Loading…
Cancel
Save