delete jacoco.data before run so later report generation will work

Project: http://git-wip-us.apache.org/repos/asf/ant-ivy/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-ivy/commit/bf23be12
Tree: http://git-wip-us.apache.org/repos/asf/ant-ivy/tree/bf23be12
Diff: http://git-wip-us.apache.org/repos/asf/ant-ivy/diff/bf23be12

Branch: refs/heads/master
Commit: bf23be1285970102f0f7189004d5d10bd9b9d4df
Parents: f8962c6
Author: Jan Matèrne <j...@apache.org>
Authored: Fri Jun 2 14:26:56 2017 +0200
Committer: Jan Matèrne <j...@apache.org>
Committed: Fri Jun 2 14:26:56 2017 +0200

----------------------------------------------------------------------
 build.xml | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/bf23be12/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index ab74a8a..b91f33d 100644
--- a/build.xml
+++ b/build.xml
@@ -415,6 +415,8 @@
     <target name="test-internal" 
depends="build-test,init-tests,prepare-osgi-tests,prepare-test-jar-repositories,init-jacoco"
 unless="skip.test">
         <mkdir dir="${test.xml.dir}"/>
 
+        <!-- multiple runs into the same logfile let the later report 
generation fail -->
+        <delete file="${jacoco.log}"/>
         <jacoco:coverage xmlns:jacoco="antlib:org.jacoco.ant" 
destfile="${jacoco.log}"
                          
exclclassloader="sun.reflect.DelegatingClassLoader:javassist.Loader">
             <junit

Reply via email to