diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2020-12-25 01:42:10 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2020-12-25 01:42:10 +0000 |
commit | 6b6e96e07db49b40873f4a2c844e31c7b52aa63c (patch) | |
tree | d8b01736f709c41d7ebaf285b94160f4ff8fa9ab /build.xml | |
parent | a0fa9e19b1196bc10034f15474d27ce23bf5865a (diff) | |
download | poi-6b6e96e07db49b40873f4a2c844e31c7b52aa63c.tar.gz poi-6b6e96e07db49b40873f4a2c844e31c7b52aa63c.zip |
try to fix distsourcebuild error
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884785 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1239,7 +1239,7 @@ under the License. <length string="@{module2}" when="greater" length="0"/> </condition> - <delete file="build/status-as-tests-run.txt" failonerror="false"/> + <delete file="@{outputDir}/status-as-tests-run.txt" failonerror="false"/> <!-- As of 2018, JaCoCo is managing expectations and stay on Java 5 and therefore don't support junitlauncher --> <!-- https://github.com/jacoco/jacoco/issues/673 ... m( --> @@ -1255,6 +1255,7 @@ under the License. <testclasses outputDir="@{outputDir}"> <fork> + <sysproperty key="junit5.progress.file" value="@{outputDir}/status-as-tests-run.txt"/> <syspropertyset refid="junit.properties"/> <sysproperty key="java.io.tmpdir" value="${tempdir}"/> <jvmarg value="-Xmx@{heap}M"/> @@ -1279,14 +1280,15 @@ under the License. <jvmarg line="--add-modules org.apache.poi.@{module2}" if:set="use_module2"/> </fork> + <!-- can't use resultfile="status-as-tests-run.txt" here ... it's truncated with every test --> + <listener classname="Junit5Progress" outputDir="@{outputDir}" /> <listener type="legacy-plain" sendSysOut="true" outputDir="@{outputDir}"/> <listener type="legacy-xml" sendSysOut="true" sendSysErr="true" outputDir="@{outputDir}"/> - <listener classname="Junit5Progress"/> <elements/> </testclasses> </junitlauncher> - <loadfile property="contents" srcFile="build/status-as-tests-run.txt" /> + <loadfile property="contents" srcFile="@{outputDir}/status-as-tests-run.txt" /> <echo message="${contents}" /> </sequential> </macrodef> |