Changeset 85d5a85


Ignore:
Timestamp:
Feb 3, 2011 6:57:35 AM (9 years ago)
Author:
dev <dev@…>
Branches:
master
Children:
9257cbb, daac11d2
Parents:
fa6e60d
Message:

replaced clover with opensource alternative

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/build.xml

    rfa6e60d r85d5a85  
    4444        <javadoc sourcepath="./src:./test" destdir="./build/javadoc" packagenames="*" use="true" splitindex="true" windowtitle="I2P SDK" />
    4545    </target>
    46     <target name="test" depends="clean, compileTest">
     46    <target name="prepareTest" depends="compileTest" if="with.cobertura">
     47        <taskdef classpath="${with.cobertura}" resource="tasks.properties" onerror="report" />
     48        <mkdir dir="./build/obj_test" />
     49        <cobertura-instrument todir="./build/obj_test">
     50            <fileset dir="./build/obj">
     51                <include name="**/*.class"/>
     52            </fileset>
     53        </cobertura-instrument>
     54    </target>
     55    <target name="test" depends="clean, compileTest, prepareTest">
    4756        <junit printsummary="on" fork="yes">
     57            <sysproperty key="net.sourceforge.cobertura.datafile" file="./cobertura.ser" />
    4858            <classpath>
    4959                <pathelement path="${classpath}" />
     60                <pathelement location="./build/obj_test" />
    5061                <pathelement location="./build/obj" />
    5162                <pathelement location="../../installer/lib/jbigi/jbigi.jar" />
    52                 <pathelement path="${ant.home}/lib/clover.jar"/>
     63                <pathelement location="${with.cobertura}" />
    5364            </classpath>
    5465            <batchtest>
     
    8091        </delete>
    8192    </target>
     93    <target name="cobertura" depends="test" if="with.cobertura">
     94        <mkdir dir="../../reports/core/cobertura" />
     95        <cobertura-report format="xml" srcdir="./src" destdir="../../reports/core/cobertura" />
     96        <delete file="./cobertura.ser" />
     97    </target>
    8298    <target name="junit.report">
    8399        <junitreport todir="../../reports/core/junit">
     
    88104        </junitreport>
    89105    </target>
    90     <target name="clover.report">
    91         <taskdef resource="clovertasks"/>
    92         <mkdir dir="../../reports/" />
    93         <mkdir dir="../../reports/core" />
    94         <mkdir dir="../../reports/core/clover" />
    95         <clover-setup initString="../../reports/core/clover/coverage.db"/>
    96         <clover-report>
    97             <current outfile="../../reports/core/html/clover">
    98                 <format type="html"/>
    99             </current>
    100         </clover-report>
    101     </target>
    102     <target name="test.report" depends="junit.report, clover.report"/>
    103     <target name="useclover">
    104         <taskdef resource="clovertasks"/>
    105         <mkdir dir="../../reports/" />
    106         <mkdir dir="../../reports/core/" />
    107         <mkdir dir="../../reports/core/clover" />
    108         <clover-setup initString="../../reports/core/clover/coverage.db"/>
    109     </target>
     106    <target name="test.report" depends="junit.report"/>
    110107    <target name="fulltest" depends="test, junit.report" />
    111     <target name="fullclovertest" depends="useclover, test, test.report" />
    112108    <target name="clean">
    113109        <delete dir="./build" />
Note: See TracChangeset for help on using the changeset viewer.