Lines Matching +full:build +full:- +full:src +full:- +full:dir
1 <?xml version="1.0" encoding="UTF-8"?>
3 <!--
7 http://www.eclipse.org/legal/epl-2.0
9 SPDX-License-Identifier: EPL-2.0
12 Marc R. Hoffmann - initial API and implementation
13 -->
15 <project name="Example Ant Build with JaCoCo" default="rebuild" xmlns:jacoco="antlib:org.jacoco.ant…
18 Example Ant build file that demonstrates how a JaCoCo coverage report
19 can be itegrated into an existing build in three simple steps.
22 <property name="src.dir" location="./src/main/java" />
23 <property name="result.dir" location="./target" />
24 <property name="result.classes.dir" location="${result.dir}/classes" />
25 <property name="result.report.dir" location="${result.dir}/site/jacoco" />
26 <property name="result.exec.file" location="${result.dir}/jacoco.exec" />
28 <!-- Step 1: Import JaCoCo Ant tasks -->
34 <delete dir="${result.dir}" />
38 <mkdir dir="${result.classes.dir}" />
39 …<javac srcdir="${src.dir}" destdir="${result.classes.dir}" debug="true" includeantruntime="false" …
43 <!-- Step 2: Wrap test execution with the JaCoCo coverage task -->
46 <classpath path="${result.classes.dir}" />
58 <!-- Step 3: Create coverage report -->
61 <!-- This task needs the collected execution data and ... -->
66 <!-- the class files and optional source files ... -->
69 <fileset dir="${result.classes.dir}" />
71 <sourcefiles encoding="UTF-8">
72 <fileset dir="${src.dir}" />
76 <!-- to produce reports in different formats. -->
77 <html destdir="${result.report.dir}" />
78 <csv destfile="${result.report.dir}/report.csv" />
79 <xml destfile="${result.report.dir}/report.xml" />