| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Copyright (c) 2009, 2011 Mountainminds GmbH & Co. KG and Contributors |
| All rights reserved. This program and the accompanying materials |
| are made available under the terms of the Eclipse Public License v1.0 |
| which accompanies this distribution, and is available at |
| http://www.eclipse.org/legal/epl-v10.html |
| |
| Contributors: |
| Evgeny Mandrikov - initial API and implementation |
| --> |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.jacoco</groupId> |
| <artifactId>org.jacoco.build</artifactId> |
| <version>0.5.4-SNAPSHOT</version> |
| <relativePath>../org.jacoco.build</relativePath> |
| </parent> |
| |
| <artifactId>org.jacoco.doc</artifactId> |
| <!-- do not set packaging to pom, because otherwise we will receive "Not executing Javadoc as the project is not a Java classpath-capable package" --> |
| <packaging>eclipse-plugin</packaging> |
| |
| <name>JaCoCo :: Documentation</name> |
| <description>JaCoCo Standalone Distribution</description> |
| |
| <properties> |
| <maven.deploy.skip>true</maven.deploy.skip> |
| |
| <copyright.years>${project.inceptionYear} - 2011</copyright.years> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>org.jacoco.core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>org.jacoco.report</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>org.jacoco.agent</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>org.jacoco.agent</artifactId> |
| <version>${project.version}</version> |
| <classifier>runtime</classifier> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>org.jacoco.ant</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>org.jacoco.ant-nodeps</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>org.jacoco.examples</artifactId> |
| <version>${project.version}</version> |
| <type>zip</type> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <sourceDirectory>src</sourceDirectory> |
| |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.groovy.maven</groupId> |
| <artifactId>gmaven-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>validate</phase> |
| <goals> |
| <goal>execute</goal> |
| </goals> |
| <configuration> |
| <source> |
| project.properties['qualified.bundle.version'] = project.properties['unqualifiedVersion'] + '.' + project.properties['buildQualifier'] |
| </source> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>coverage-reports</id> |
| <phase>package</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <target> |
| <typedef resource="org/jacoco/ant/antlib.xml"/> |
| <echo message="Coverage report"/> |
| <report> |
| <executiondata> |
| <fileset dir="../org.jacoco.agent.test/target" includes="jacoco.exec"/> |
| <fileset dir="../org.jacoco.agent.rt.test/target" includes="jacoco.exec"/> |
| <fileset dir="../org.jacoco.ant.test/target" includes="jacoco.exec"/> |
| <fileset dir="../org.jacoco.core.test/target" includes="jacoco.exec"/> |
| <fileset dir="../org.jacoco.report.test/target" includes="jacoco.exec"/> |
| <fileset dir="../jacoco-maven-plugin.test/target" includes="jacoco.exec"/> |
| </executiondata> |
| <structure name="JaCoCo"> |
| <group name="org.jacoco.agent"> |
| <classfiles> |
| <!-- Process class files only, ignore jacocoagent.jar --> |
| <fileset dir="../org.jacoco.agent/target/classes" includes="**/*.class"/> |
| </classfiles> |
| <sourcefiles> |
| <fileset dir="../org.jacoco.agent/src"/> |
| </sourcefiles> |
| </group> |
| <group name="org.jacoco.agent.rt"> |
| <classfiles> |
| <fileset dir="../org.jacoco.agent.rt/target/classes"/> |
| </classfiles> |
| <sourcefiles> |
| <fileset dir="../org.jacoco.agent.rt/src"/> |
| </sourcefiles> |
| </group> |
| <group name="org.jacoco.ant"> |
| <classfiles> |
| <fileset dir="../org.jacoco.ant/target/classes"/> |
| </classfiles> |
| <sourcefiles> |
| <fileset dir="../org.jacoco.ant/src"/> |
| </sourcefiles> |
| </group> |
| <group name="org.jacoco.core"> |
| <classfiles> |
| <fileset dir="../org.jacoco.core/target/classes"/> |
| </classfiles> |
| <sourcefiles> |
| <fileset dir="../org.jacoco.core/src"/> |
| </sourcefiles> |
| </group> |
| <group name="org.jacoco.report"> |
| <classfiles> |
| <fileset dir="../org.jacoco.report/target/classes"/> |
| </classfiles> |
| <sourcefiles> |
| <fileset dir="../org.jacoco.report/src"/> |
| </sourcefiles> |
| </group> |
| <group name="jacoco-maven-plugin"> |
| <classfiles> |
| <fileset dir="../jacoco-maven-plugin/target/classes" excludes="**/HelpMojo.class"/> |
| </classfiles> |
| <sourcefiles> |
| <fileset dir="../jacoco-maven-plugin/src"/> |
| </sourcefiles> |
| </group> |
| </structure> |
| <html destdir="${project.build.directory}/coverage" |
| footer="Code Coverage Report for JaCoCo ${project.version}" |
| locale="en"/> |
| <csv destfile="${project.build.directory}/coverage/coverage.csv"/> |
| <xml destfile="${project.build.directory}/coverage/coverage.xml"/> |
| </report> |
| |
| <echo message="JUnit report"/> |
| <mkdir dir="${project.build.directory}/junit"/> |
| <junitreport todir="${project.build.directory}/junit"> |
| <fileset dir="../org.jacoco.agent.test/target/surefire-reports" includes="**/*.xml"/> |
| <fileset dir="../org.jacoco.agent.rt.test/target/surefire-reports" includes="**/*.xml"/> |
| <fileset dir="../org.jacoco.ant.test/target/surefire-reports" includes="**/*.xml"/> |
| <fileset dir="../org.jacoco.core.test/target/surefire-reports" includes="**/*.xml"/> |
| <fileset dir="../org.jacoco.report.test/target/surefire-reports" includes="**/*.xml"/> |
| <report format="noframes" styledir="junitstyle" todir="${project.build.directory}/junit"> |
| <param name="qualified.bundle.version" expression="${qualified.bundle.version}"/> |
| <param name="jacoco.home.url" expression="${jacoco.home.url}"/> |
| <param name="copyright.years" expression="${copyright.years}"/> |
| </report> |
| </junitreport> |
| <move file="${project.build.directory}/junit/junit-noframes.html" tofile="${project.build.directory}/junit/index.html"/> |
| </target> |
| </configuration> |
| </execution> |
| </executions> |
| <dependencies> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>org.jacoco.ant</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.ant</groupId> |
| <artifactId>ant-junit</artifactId> |
| <version>1.8.2</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>attach-javadocs</id> |
| <phase>prepare-package</phase> |
| <goals> |
| <goal>jar</goal> |
| </goals> |
| <configuration> |
| <reportOutputDirectory>${project.build.directory}/apidocs</reportOutputDirectory> |
| <includeDependencySources>true</includeDependencySources> |
| <excludePackageNames>*.internal,org.jacoco.ant,org.jacoco.agent.rt</excludePackageNames> |
| <dependencySourceExcludes> |
| <dependencySourceExclude>asm:*</dependencySourceExclude> |
| <dependencySourceExclude>org.jacoco:org.jacoco.ant-nodeps</dependencySourceExclude> |
| <dependencySourceExclude>org.jacoco:*.test</dependencySourceExclude> |
| </dependencySourceExcludes> |
| <doctitle>JaCoCo ${qualified.bundle.version} API</doctitle> |
| <windowtitle>JaCoCo ${qualified.bundle.version} API</windowtitle> |
| <use>true</use> |
| <version>false</version> |
| <groups> |
| <!-- Note: using org.jacoco.core.* for packages would omit the org.jacoco.core package but using org.jacoco* will include it. --> |
| <group> |
| <title>Bundle org.jacoco.core</title> |
| <packages>org.jacoco.core*</packages> |
| </group> |
| <group> |
| <title>Bundle org.jacoco.report</title> |
| <packages>org.jacoco.report*</packages> |
| </group> |
| <group> |
| <title>Bundle org.jacoco.agent</title> |
| <packages>org.jacoco.agent*</packages> |
| </group> |
| </groups> |
| <overview>javadoc/overview.html</overview> |
| <stylesheetfile>javadoc/stylesheet.css</stylesheetfile> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <finalName>jacoco-${qualified.bundle.version}</finalName> |
| <appendAssemblyId>false</appendAssemblyId> |
| <descriptors> |
| <descriptor>assembly.xml</descriptor> |
| </descriptors> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |