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:
Dominik Stadler 2013-08-12 19:43:40 +00:00
parent 0b5244e619
commit 74450d33b7
1 changed files with 2 additions and 1 deletions

View File

@ -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}"/>