costin 2002/10/24 12:15:48
Modified: . build.xml
Log:
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.
Revision Changes Path
1.330 +8 -4 jakarta-ant/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-ant/build.xml,v
retrieving revision 1.329
retrieving revision 1.330
diff -u -r1.329 -r1.330
--- build.xml 23 Oct 2002 09:34:04 -0000 1.329
+++ build.xml 24 Oct 2002 19:15:47 -0000 1.330
@@ -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"/> -->
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>