Fix how coverage-reporting is triggered, was effectively disabled always currently because of how Ant if/unless works
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1513233 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4a3138f575
commit
0124294b3f
@ -656,6 +656,7 @@ under the License.
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="jacocotask" depends="">
|
<target name="jacocotask" depends="">
|
||||||
|
<echo message="Coverage reporting: ${coverage.enabled}"/>
|
||||||
<taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml">
|
<taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml">
|
||||||
<classpath refid="lib.jacoco"/>
|
<classpath refid="lib.jacoco"/>
|
||||||
</taskdef>
|
</taskdef>
|
||||||
@ -665,7 +666,7 @@ under the License.
|
|||||||
description="Tests main, scratchpad and ooxml"/>
|
description="Tests main, scratchpad and ooxml"/>
|
||||||
<target name="test-all" depends="test,test-ooxml-lite,testcoveragereport"/>
|
<target name="test-all" depends="test,test-ooxml-lite,testcoveragereport"/>
|
||||||
|
|
||||||
<target name="testcoveragereport" depends="jacocotask" description="create test-report" xmlns:jacoco="antlib:org.jacoco.ant" if="${coverage.enabled}">
|
<target name="testcoveragereport" depends="jacocotask" description="create test-report" xmlns:jacoco="antlib:org.jacoco.ant" if="coverage.enabled">
|
||||||
<delete dir="${coverage.dir}"/>
|
<delete dir="${coverage.dir}"/>
|
||||||
<mkdir dir="${coverage.dir}"/>
|
<mkdir dir="${coverage.dir}"/>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user