Changeset 849c407


Ignore:
Timestamp:
Feb 21, 2012 4:05:27 AM (8 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
ceda7c9c
Parents:
a2217b2
Message:

Added clover targets to core build.xml as well, so either will work

Pass in the absolute location of clover.jar as the with.clover property
to activate the clover targets.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/build.xml

    ra2217b2 r849c407  
    8383    </target>
    8484    <!-- preparation of code coverage tool of choice -->
     85    <target name="prepareClover" depends="compileTest" if="with.clover">
     86        <taskdef resource="clovertasks"/>
     87        <mkdir dir="../../reports/core/clover" />
     88        <clover-setup initString="../../reports/core/clover/coverage.db"/>
     89    </target>
    8590    <target name="prepareCobertura" depends="compileTest" if="with.cobertura">
    8691        <taskdef classpath="${with.cobertura}" resource="tasks.properties" onerror="report" />
     
    9499        </cobertura-instrument>
    95100    </target>
    96     <target name="prepareTest" depends="prepareCobertura" />
     101    <target name="prepareTest" depends="prepareClover, prepareCobertura" />
    97102    <!-- end preparation of code coverage tool -->
    98103    <target name="test" depends="clean, compileTest, prepareTest">
     
    110115                <pathelement location="./build/obj" />
    111116                <pathelement location="../../build/jbigi.jar" />
     117                <pathelement location="${with.clover}" />
    112118                <pathelement location="${with.cobertura}" />
    113119            </classpath>
     
    131137        </junitreport>
    132138    </target>
     139    <target name="clover.report" depends="test" if="with.clover">
     140        <clover-report>
     141            <current outfile="../../reports/core/html/clover">
     142                <format type="html"/>
     143            </current>
     144        </clover-report>
     145    </target>
    133146    <target name="cobertura.report" depends="test" if="with.cobertura">
    134147        <mkdir dir="../../reports/core/cobertura" />
     
    138151        <delete file="./cobertura.ser" />
    139152    </target>
    140     <target name="test.report" depends="junit.report, cobertura.report"/>
     153    <target name="test.report" depends="junit.report, clover.report, cobertura.report"/>
    141154    <!-- end test reports -->
    142155    <target name="fulltest" depends="test, junit.report" />
Note: See TracChangeset for help on using the changeset viewer.