summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorAntoine Gourlay <antoine@gourlay.fr>2014-09-29 10:07:40 +0200
committerAntoine Gourlay <antoine@gourlay.fr>2014-09-29 12:31:34 +0200
commit159ca839b9d63da6c402731342d827f227219323 (patch)
tree007a40b46b2bc9062812fd39142b2c4d7f3a9181 /build.xml
parentf62c312a857e1a6cc6646ee60a0f86866e19c01b (diff)
downloadscala-159ca839b9d63da6c402731342d827f227219323.tar.gz
scala-159ca839b9d63da6c402731342d827f227219323.tar.bz2
scala-159ca839b9d63da6c402731342d827f227219323.zip
Better ant / junit interaction
Currently junit test sources are always rebuilt, that's wasteful. The second dependency on the junit task is there so that the first can be skipped if sources haven't changed. Also normalize package names versus location in the `test/junit` folder: ant isn't very clever when it comes to selectively recompiling tests, so now editing a test will only cause that one to be recompiled (instead of ~13 files every time). This makes TDD with junit even faster.
Diffstat (limited to 'build.xml')
-rwxr-xr-xbuild.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.xml b/build.xml
index a394546b0a..eb86b4fb1a 100755
--- a/build.xml
+++ b/build.xml
@@ -1437,7 +1437,7 @@ TODO:
<stopwatch name="test.junit.compiler.timer" action="total"/>
</target>
- <target name="test.junit" depends="test.junit.comp">
+ <target name="test.junit" depends="test.junit.comp, test.junit.init">
<stopwatch name="test.junit.timer"/>
<mkdir dir="${test.junit.classes}"/>
<echo message="Note: details of failed tests will be output to ${build-junit.dir}"/>