File: build.xml

package info (click to toggle)
libgoby-java 3.3.1%2Bdfsg2-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 58,104 kB
  • sloc: java: 78,105; cpp: 5,011; xml: 3,170; python: 2,108; sh: 1,575; ansic: 277; makefile: 114
file content (43 lines) | stat: -rw-r--r-- 1,369 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<project name="cobertura" basedir="..">
    <dirname property="cobertura.basedir" file="${ant.file.cobertura}"/>
    <property name="cobertura-classes" location="cobertura-classes"/>

    <path id="cobertura.classpath">
        <fileset dir="${cobertura.basedir}/lib">
            <include name="*.jar"/>
        </fileset>
    </path>

    <!-- See http://cobertura.sourceforge.net/ -->
    <taskdef classpathref="cobertura.classpath" resource="tasks.properties"/>

    <target name="init">
        <mkdir dir="${cobertura-classes}"/>
    </target>

    <target name="cobertura-setup">
        <mkdir dir="${cobertura-classes}"/>
        <property name="with-cobertura" value="true"/>
    </target>

    <target name="cobertura-instrument" if="with-cobertura">
        <delete file="cobertura.ser"/>

        <cobertura-instrument todir="${cobertura-classes}">
            <fileset dir="${classes}">
                <include name="**/*.class"/>
            </fileset>
        </cobertura-instrument>
    </target>

    <target name="cobertura-report" if="with-cobertura">
        <cobertura-report format="html" destdir="${test-results}/html/cobertura">
            <fileset dir="${src}"/>
        </cobertura-report>
    </target>

    <target name="clean">
        <delete dir="${cobertura-classes}"/>
        <delete file="cobertura.ser"/>
    </target>
</project>