<project name="Clover Report" default="current">

    <clover-format id="clover.format" type="${type}" orderBy="${orderBy}" filter="${filter}"/>

    <clover-setup initString="${cloverdb}"/>

    <fileset id="test.sources" dir="${projectDir}">
        <include name="${testPattern}"/>
    </fileset>


    <clover-columns id="clover.columns">
        <totalChildren/>
        <filteredElements/>
        <avgMethodComplexity/>
        <uncoveredElements format="raw"/>
        <totalPercentageCovered format="longbar"/>
    </clover-columns>

    <target name="historical">
        <clover-report>
            <current outfile="${output}" summary="${summary}" charset="${charset}" title="${title}" titleAnchor="${titleAnchor}" span="${span}">
                <format refid="clover.format"/>
                <testsources refid="test.sources"/>
                <columns refid="clover.columns"/>
            </current>
            <historical outfile="${historyout}" historydir="${history}" charset="${charset}" title="${title}" titleAnchor="${titleAnchor}"
                        span="${span}">
                <format refid="clover.format"/>
            </historical>
        </clover-report>
    </target>

    <target name="current">
        <clover-report>
            <current outfile="${output}" title="${title}" titleAnchor="${titleAnchor}" summary="${summary}" charset="${charset}" span="${span}">
                <format refid="clover.format"/>
                <testsources refid="test.sources"/>
                <columns refid="clover.columns"/>
            </current>
        </clover-report>
    </target>

</project>