jacoco-0.7.8/ 0000775 0000000 0000000 00000000000 13042174274 0012770 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/.appveyor.yml 0000664 0000000 0000000 00000001341 13042174274 0015435 0 ustar 00root root 0000000 0000000 cache:
- C:\Users\appveyor\apache-maven-3.3.9 -> appveyor.yml
- C:\Users\appveyor\.m2 -> **\pom.xml
install:
- if not exist C:\Users\appveyor\apache-maven-3.3.9 (
curl -LsS "http://www.apache.org/dyn/closer.cgi?action=download&filename=maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip" > apache-maven-3.3.9-bin.zip &&
unzip apache-maven-3.3.9-bin.zip -d C:\Users\appveyor
)
- SET PATH=C:\Users\appveyor\apache-maven-3.3.9\bin;%PATH%
build_script:
# Maven 3.3.9 requires Java >= 7, but generation of Javadocs requires Java <= 6 (https://github.com/jacoco/jacoco/issues/110)
- mvn -V -B -e verify -Djdk.version=1.6 --toolchains=.travis\appveyor-toolchains.xml
artifacts:
- path: jacoco\target\*.zip
jacoco-0.7.8/.github/ 0000775 0000000 0000000 00000000000 13042174274 0014330 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/.github/ISSUE_TEMPLATE.md 0000664 0000000 0000000 00000000563 13042174274 0017041 0 ustar 00root root 0000000 0000000 This is a issue tracker. Please use our mailing list for general questions:
https://groups.google.com/forum/?fromgroups=#!forum/jacoco
Also check FAQ before opening an issue: http://www.jacoco.org/jacoco/trunk/doc/faq.html
### Steps to reproduce
JaCoCo version:
Operating system:
Tool integration: Maven/Ant/API/Other
### Expected behaviour
### Actual behaviour
jacoco-0.7.8/.travis.sh 0000775 0000000 0000000 00000004557 13042174274 0014730 0 ustar 00root root 0000000 0000000 #!/bin/bash
set -euo pipefail
# Prevent accidental execution outside of Travis:
if [ -z "${TRAVIS+false}" ]
then
echo "TRAVIS environment variable is not set"
exit 1
fi
# Switch to desired JDK, download if required:
function install_jdk {
JDK_URL=$1
FILENAME="${JDK_URL##*/}"
rm -rf /tmp/jdk/$JDK
mkdir -p /tmp/jdk/$JDK
if [ ! -f "/tmp/jdk/$FILENAME" ]
then
curl -L $JDK_URL -o /tmp/jdk/$FILENAME
fi
tar -xzf /tmp/jdk/$FILENAME -C /tmp/jdk/$JDK --strip-components 1
if [ -z "${2+false}" ]
then
export JAVA_HOME="/tmp/jdk/$JDK"
export JDK_HOME="${JAVA_HOME}"
export JAVAC="${JAVA_HOME}/bin/javac"
export PATH="${JAVA_HOME}/bin:${PATH}"
fi
}
source $HOME/.jdk_switcher_rc
case "$JDK" in
5)
jdk_switcher use oraclejdk8
install_jdk $JDK5_URL false
;;
6)
jdk_switcher use openjdk6
;;
7|8)
jdk_switcher use oraclejdk${JDK}
;;
8-ea)
install_jdk $JDK8_EA_URL
;;
9-ea)
install_jdk $JDK9_EA_URL
;;
9-ea-stable)
install_jdk $JDK9_EA_STABLE_URL
;;
esac
# Do not use "~/.mavenrc" set by Travis (https://github.com/travis-ci/travis-ci/issues/3893),
# because it prevents execution of JaCoCo during integration tests for jacoco-maven-plugin,
# and "-XMaxPermSize" not supported by JDK 9
export MAVEN_SKIP_RC=true
# Build:
# TODO(Godin): see https://github.com/jacoco/jacoco/issues/300 about "bytecode.version"
case "$JDK" in
5)
if [[ ${TRAVIS_PULL_REQUEST} == 'false' && ${TRAVIS_BRANCH} == 'master' ]]
then
# goal "deploy:deploy" used directly instead of "deploy" phase to avoid pollution of Maven repository by "install" phase
mvn -V -B -e -f org.jacoco.build verify sonar:sonar deploy:deploy -DdeployAtEnd -Djdk.version=1.5 --toolchains=./.travis/toolchains.xml --settings=./.travis/settings.xml -Dsonar.host.url=${SONARQUBE_URL} -Dsonar.login=${SONARQUBE_TOKEN}
python ./.travis/trigger-site-deployment.py
else
mvn -V -B -e verify -Djdk.version=1.5 --toolchains=./.travis/toolchains.xml
fi
;;
6)
mvn -V -B -e verify -Dbytecode.version=1.6
;;
7)
mvn -V -B -e verify -Dbytecode.version=1.7
;;
8 | 8-ea)
mvn -V -B -e verify -Dbytecode.version=1.8
;;
9-ea | 9-ea-stable)
# see https://bugs.openjdk.java.net/browse/JDK-8131041 about "java.locale.providers"
mvn -V -B -e verify -Dbytecode.version=1.9 \
-DargLine=-Djava.locale.providers=JRE,SPI
;;
*)
echo "Incorrect JDK [$JDK]"
exit 1;
;;
esac
jacoco-0.7.8/.travis.yml 0000664 0000000 0000000 00000000600 13042174274 0015075 0 ustar 00root root 0000000 0000000 language: java
# Skip "install" stage:
install: true
# Use container-based infrastructure:
sudo: false
# Keep Maven local repository between builds:
cache:
directories:
- '$HOME/.m2/repository'
env:
- JDK=5
- JDK=6
- JDK=7
- JDK=8
- JDK=8-ea
- JDK=9-ea
- JDK=9-ea-stable
matrix:
allow_failures:
- env: JDK=8-ea
- env: JDK=9-ea
script: ./.travis.sh
jacoco-0.7.8/.travis/ 0000775 0000000 0000000 00000000000 13042174274 0014356 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/.travis/appveyor-toolchains.xml 0000664 0000000 0000000 00000001034 13042174274 0021104 0 ustar 00root root 0000000 0000000
jdkjava161.6oracleC:\Program Files\Java\jdk1.6.0
jacoco-0.7.8/.travis/settings.xml 0000664 0000000 0000000 00000001246 13042174274 0016743 0 ustar 00root root 0000000 0000000 sonatype-nexus-snapshots${env.SONATYPE_USERNAME}${env.SONATYPE_PASSWORD}defaultTLSv1default
jacoco-0.7.8/.travis/toolchains.xml 0000664 0000000 0000000 00000001005 13042174274 0017237 0 ustar 00root root 0000000 0000000
jdkjava151.5sun/tmp/jdk/5
jacoco-0.7.8/.travis/trigger-site-deployment.py 0000664 0000000 0000000 00000001405 13042174274 0021513 0 ustar 00root root 0000000 0000000 import os
import urllib2
import json
def request(url, data, token = None):
req = urllib2.Request(url, data)
req.add_header('User-Agent', 'MyClient/1.0.0')
req.add_header('Accept', 'application/vnd.travis-ci.2+json')
req.add_header('Content-Type', 'application/json; charset=UTF-8')
if token:
req.add_header('Travis-API-Version', '3')
req.add_header('Authorization', 'token ' + travis_token)
p = urllib2.urlopen(req)
return json.loads(p.read())
travis_token = request('https://api.travis-ci.org/auth/github', '{"github_token":"' + os.environ['GH_TOKEN'] + '"}')['access_token']
print(request('https://api.travis-ci.org/repo/jacoco%2Fwww.eclemma.org/requests', '{ "request": { "branch": "master", "message": "New JaCoCo snapshot" } }', travis_token))
jacoco-0.7.8/LICENSE.md 0000664 0000000 0000000 00000001247 13042174274 0014400 0 ustar 00root root 0000000 0000000 License
=======
Copyright (c) 2009, 2016 Mountainminds GmbH & Co. KG and Contributors
The JaCoCo Java Code Coverage Library and all included documentation is made
available by Mountainminds GmbH & Co. KG, Munich. Except indicated below, the
Content is provided to you under the terms and conditions of the Eclipse Public
License Version 1.0 ("EPL"). A copy of the EPL is available at
[http://www.eclipse.org/legal/epl-v10.html](http://www.eclipse.org/legal/epl-v10.html).
Please visit
[http://www.jacoco.org/jacoco/trunk/doc/license.html](http://www.jacoco.org/jacoco/trunk/doc/license.html)
for the complete license information including third party licenses and trademarks.
jacoco-0.7.8/README.md 0000664 0000000 0000000 00000002235 13042174274 0014251 0 ustar 00root root 0000000 0000000 JaCoCo Java Code Coverage Library
=================================
[](https://travis-ci.org/jacoco/jacoco)
[](https://ci.appveyor.com/project/JaCoCo/jacoco/branch/master)
[](http://search.maven.org/#search|ga|1|g%3Aorg.jacoco)
JaCoCo is a free Java code coverage library distributed under the Eclipse Public
License. Check the [project homepage](http://www.jacoco.org/jacoco)
for downloads, documentation and feedback.
Please use our [mailing list](https://groups.google.com/forum/?fromgroups=#!forum/jacoco)
for questions regarding JaCoCo which are not already covered by the
[extensive documentation](http://www.jacoco.org/jacoco/trunk/doc/).
Note: We do not answer general questions in the project's issue tracker. Please use our [mailing list](https://groups.google.com/forum/?fromgroups=#!forum/jacoco) for this.
-------------------------------------------------------------------------
jacoco-0.7.8/jacoco-maven-plugin.test/ 0000775 0000000 0000000 00000000000 13042174274 0017604 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/.gitignore 0000664 0000000 0000000 00000000023 13042174274 0021567 0 ustar 00root root 0000000 0000000 /target
/.settings
jacoco-0.7.8/jacoco-maven-plugin.test/.project 0000664 0000000 0000000 00000001073 13042174274 0021254 0 ustar 00root root 0000000 0000000
jacoco-maven-plugin.testorg.eclipse.m2e.core.maven2Builderorg.eclipse.m2e.core.maven2Nature.settings2PARENT-1-PROJECT_LOC/org.jacoco.core.test/.settings
jacoco-0.7.8/jacoco-maven-plugin.test/it/ 0000775 0000000 0000000 00000000000 13042174274 0020220 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-fails-halt/ 0000775 0000000 0000000 00000000000 13042174274 0023731 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-fails-halt/invoker.properties 0000664 0000000 0000000 00000000033 13042174274 0027520 0 ustar 00root root 0000000 0000000 invoker.buildResult=failure jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-fails-halt/pom.xml 0000664 0000000 0000000 00000004246 13042174274 0025254 0 ustar 00root root 0000000 0000000
4.0.0jacocosetup-parent1.0-SNAPSHOTit-check-fails-halt@project.groupId@jacoco-maven-pluginprepare-agentcheckcheckCLASSExampleMETHODMISSEDCOUNT0
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-fails-halt/src/ 0000775 0000000 0000000 00000000000 13042174274 0024520 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-fails-halt/src/main/ 0000775 0000000 0000000 00000000000 13042174274 0025444 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-fails-halt/src/main/java/ 0000775 0000000 0000000 00000000000 13042174274 0026365 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-fails-halt/src/main/java/Example.java 0000664 0000000 0000000 00000001302 13042174274 0030617 0 ustar 00root root 0000000 0000000 /*******************************************************************************
* Copyright (c) 2009, 2016 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
* Kyle Lieber - implementation of CheckMojo
*
*******************************************************************************/
public class Example {
public void sayHello() {
System.out.println("Hello world");
}
}
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-fails-halt/src/test/ 0000775 0000000 0000000 00000000000 13042174274 0025477 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-fails-halt/src/test/java/ 0000775 0000000 0000000 00000000000 13042174274 0026420 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-fails-halt/src/test/java/ExampleTest.java 0000664 0000000 0000000 00000001316 13042174274 0031517 0 ustar 00root root 0000000 0000000 /*******************************************************************************
* Copyright (c) 2009, 2016 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
* Kyle Lieber - implementation of CheckMojo
*
*******************************************************************************/
import org.junit.Test;
public class ExampleTest {
@Test
public void test() {
new Example();
}
}
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-fails-halt/verify.bsh 0000664 0000000 0000000 00000002064 13042174274 0025735 0 ustar 00root root 0000000 0000000 /*******************************************************************************
* Copyright (c) 2009, 2016 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
* Kyle Lieber - implementation of CheckMojo
*
*******************************************************************************/
import java.io.*;
import org.codehaus.plexus.util.*;
String buildLog = FileUtils.fileRead( new File( basedir, "build.log" ) );
if ( buildLog.indexOf( "Coverage checks have not been met." ) < 0 ) {
throw new RuntimeException( "Coverage checks should not have been met." );
}
if ( buildLog.indexOf( "methods missed count is 1, but expected maximum is 0" ) < 0 ) {
throw new RuntimeException( "Should have displayed insufficient code coverage messages." );
}
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-fails-no-halt/ 0000775 0000000 0000000 00000000000 13042174274 0024343 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-fails-no-halt/pom.xml 0000664 0000000 0000000 00000004163 13042174274 0025664 0 ustar 00root root 0000000 0000000
4.0.0jacocosetup-parent1.0-SNAPSHOTit-check-fails-no-hault@project.groupId@jacoco-maven-pluginprepare-agentcheckcheckfalseBUNDLEMETHODMISSEDCOUNT0
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-fails-no-halt/src/ 0000775 0000000 0000000 00000000000 13042174274 0025132 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-fails-no-halt/src/main/ 0000775 0000000 0000000 00000000000 13042174274 0026056 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-fails-no-halt/src/main/java/ 0000775 0000000 0000000 00000000000 13042174274 0026777 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-fails-no-halt/src/main/java/Example.java 0000664 0000000 0000000 00000001302 13042174274 0031231 0 ustar 00root root 0000000 0000000 /*******************************************************************************
* Copyright (c) 2009, 2016 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
* Kyle Lieber - implementation of CheckMojo
*
*******************************************************************************/
public class Example {
public void sayHello() {
System.out.println("Hello world");
}
}
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-fails-no-halt/src/test/ 0000775 0000000 0000000 00000000000 13042174274 0026111 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-fails-no-halt/src/test/java/ 0000775 0000000 0000000 00000000000 13042174274 0027032 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-fails-no-halt/src/test/java/ExampleTest.java 0000664 0000000 0000000 00000001316 13042174274 0032131 0 ustar 00root root 0000000 0000000 /*******************************************************************************
* Copyright (c) 2009, 2016 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
* Kyle Lieber - implementation of CheckMojo
*
*******************************************************************************/
import org.junit.Test;
public class ExampleTest {
@Test
public void test() {
new Example();
}
}
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-fails-no-halt/verify.bsh 0000664 0000000 0000000 00000002063 13042174274 0026346 0 ustar 00root root 0000000 0000000 /*******************************************************************************
* Copyright (c) 2009, 2016 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
* Kyle Lieber - implementation of CheckMojo
*
*******************************************************************************/
import java.io.*;
import org.codehaus.plexus.util.*;
String buildLog = FileUtils.fileRead( new File( basedir, "build.log" ) );
if ( buildLog.indexOf( "Coverage checks have not been met." ) < 0 ) {
throw new RuntimeException( "Coverage checks should not have been met." );
}
if ( buildLog.indexOf( "methods missed count is 1, but expected maximum is 0" ) < 0 ) {
throw new RuntimeException( "Should have displayed insufficient code coverage messages." );
}
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-passes/ 0000775 0000000 0000000 00000000000 13042174274 0023203 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-passes/pom.xml 0000664 0000000 0000000 00000004573 13042174274 0024531 0 ustar 00root root 0000000 0000000
4.0.0jacocosetup-parent1.0-SNAPSHOTit-check-passes@project.groupId@jacoco-maven-pluginprepare-agentcheckcheckBUNDLEINSTRUCTIONCOVEREDRATIO0.90CLASSMISSEDCOUNT0
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-passes/src/ 0000775 0000000 0000000 00000000000 13042174274 0023772 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-passes/src/main/ 0000775 0000000 0000000 00000000000 13042174274 0024716 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-passes/src/main/java/ 0000775 0000000 0000000 00000000000 13042174274 0025637 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-passes/src/main/java/Example.java 0000664 0000000 0000000 00000001302 13042174274 0030071 0 ustar 00root root 0000000 0000000 /*******************************************************************************
* Copyright (c) 2009, 2016 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
* Kyle Lieber - implementation of CheckMojo
*
*******************************************************************************/
public class Example {
public void sayHello() {
System.out.println("Hello world");
}
}
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-passes/src/test/ 0000775 0000000 0000000 00000000000 13042174274 0024751 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-passes/src/test/java/ 0000775 0000000 0000000 00000000000 13042174274 0025672 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-passes/src/test/java/ExampleTest.java 0000664 0000000 0000000 00000001331 13042174274 0030766 0 ustar 00root root 0000000 0000000 /*******************************************************************************
* Copyright (c) 2009, 2016 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
* Kyle Lieber - implementation of CheckMojo
*
*******************************************************************************/
import org.junit.Test;
public class ExampleTest {
@Test
public void test() {
new Example().sayHello();
}
}
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-check-passes/verify.bsh 0000664 0000000 0000000 00000001554 13042174274 0025212 0 ustar 00root root 0000000 0000000 /*******************************************************************************
* Copyright (c) 2009, 2016 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
* Kyle Lieber - implementation of CheckMojo
*
*******************************************************************************/
import java.io.*;
import org.codehaus.plexus.util.*;
String buildLog = FileUtils.fileRead( new File( basedir, "build.log" ) );
if ( buildLog.indexOf( "All coverage checks have been met." ) < 0 ) {
throw new RuntimeException( "Coverage checks were not met." );
}
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-customize-agent/ 0000775 0000000 0000000 00000000000 13042174274 0023750 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-customize-agent/pom.xml 0000664 0000000 0000000 00000005107 13042174274 0025270 0 ustar 00root root 0000000 0000000
4.0.0jacocosetup-parent1.0-SNAPSHOTit-customize-agentcoverageAgent${project.build.directory}/coverage.execfalsesun.reflect.DelegatingClassLoader:MyClassLoadertruetruesessiontruefilelocalhost9999${project.build.directory}/classdumpstrue${jacoco.destFile}@project.groupId@jacoco-maven-pluginprepare-agentreport*java.*sun.*org.apache.maven.pluginsmaven-surefire-plugin${coverageAgent}
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-customize-agent/src/ 0000775 0000000 0000000 00000000000 13042174274 0024537 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-customize-agent/src/main/ 0000775 0000000 0000000 00000000000 13042174274 0025463 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-customize-agent/src/main/java/ 0000775 0000000 0000000 00000000000 13042174274 0026404 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-customize-agent/src/main/java/Example.java 0000664 0000000 0000000 00000001222 13042174274 0030637 0 ustar 00root root 0000000 0000000 /*******************************************************************************
* Copyright (c) 2009, 2016 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
*
*******************************************************************************/
public class Example {
public void sayHello() {
System.out.println("Hello world");
}
}
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-customize-agent/src/test/ 0000775 0000000 0000000 00000000000 13042174274 0025516 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-customize-agent/src/test/java/ 0000775 0000000 0000000 00000000000 13042174274 0026437 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-customize-agent/src/test/java/ExampleTest.java 0000664 0000000 0000000 00000001251 13042174274 0031534 0 ustar 00root root 0000000 0000000 /*******************************************************************************
* Copyright (c) 2009, 2016 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
*
*******************************************************************************/
import org.junit.Test;
public class ExampleTest {
@Test
public void test() {
new Example().sayHello();
}
}
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-customize-agent/verify.bsh 0000664 0000000 0000000 00000003403 13042174274 0025752 0 ustar 00root root 0000000 0000000 /*******************************************************************************
* Copyright (c) 2009, 2016 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
*
*******************************************************************************/
import java.io.*;
import org.codehaus.plexus.util.*;
String agentOptions = "destfile=" + basedir + File.separator + "target" + File.separator + "coverage.exec"
+ ",append=false"
+ ",includes=*"
+ ",excludes=java.*:sun.*"
+ ",exclclassloader=sun.reflect.DelegatingClassLoader:MyClassLoader"
+ ",inclbootstrapclasses=true"
+ ",inclnolocationclasses=true"
+ ",sessionid=session"
+ ",dumponexit=true"
+ ",output=file"
+ ",address=localhost"
+ ",port=9999"
+ ",classdumpdir=" + basedir + File.separator + "target" + File.separator + "classdumps"
+ ",jmx=true";
//backslashes will be escaped
agentOptions = agentOptions.replace("\\","\\\\");
String buildLog = FileUtils.fileRead( new File( basedir, "build.log" ) );
if ( buildLog.indexOf( agentOptions ) < 0 ) {
throw new RuntimeException( "Property was not configured, expected " + agentOptions );
}
File file = new File( basedir, "target/coverage.exec" );
if ( !file.isFile() )
{
throw new FileNotFoundException( "Could not find generated dump: " + file );
}
File reportDir = new File( basedir, "target/site/jacoco" );
if ( !reportDir.isDirectory() )
{
throw new RuntimeException( "Could not find generated report" );
}
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-dump/ 0000775 0000000 0000000 00000000000 13042174274 0021577 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-dump/pom.xml 0000664 0000000 0000000 00000006641 13042174274 0023123 0 ustar 00root root 0000000 0000000
4.0.0jacocosetup-parent1.0-SNAPSHOTit-dump@project.groupId@jacoco-maven-pluginprepare-agentprepare-agentdumpintegration-testdumpcheckcheckBUNDLECLASSCOVEREDCOUNT1org.apache.maven.pluginsmaven-antrun-plugin1.6launch-serverpre-integration-testrunstop-serverpost-integration-testrun
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-dump/src/ 0000775 0000000 0000000 00000000000 13042174274 0022366 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-dump/src/main/ 0000775 0000000 0000000 00000000000 13042174274 0023312 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-dump/src/main/java/ 0000775 0000000 0000000 00000000000 13042174274 0024233 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-dump/src/main/java/Server.java 0000664 0000000 0000000 00000002067 13042174274 0026351 0 ustar 00root root 0000000 0000000 /*******************************************************************************
* Copyright (c) 2009, 2016 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:
* Marc R. Hoffmann - initial API and implementation
*
*******************************************************************************/
import java.io.File;
/**
* Simple server which runs as long a termination file is created.
*/
public class Server {
public static void main(String[] args) throws Exception {
System.out.println("Test server started");
// Wait for termination file to turn up
// This option puts the target in a pseudo 'server' mode
if (args.length == 1) {
final File termFile = new File(args[0]);
while (!termFile.exists()) {
Thread.sleep(100);
}
}
System.out.println("Test server stopped");
}
}
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-dump/verify.bsh 0000664 0000000 0000000 00000001554 13042174274 0023606 0 ustar 00root root 0000000 0000000 /*******************************************************************************
* Copyright (c) 2009, 2016 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
* Kyle Lieber - implementation of CheckMojo
*
*******************************************************************************/
import java.io.*;
import org.codehaus.plexus.util.*;
String buildLog = FileUtils.fileRead( new File( basedir, "build.log" ) );
if ( buildLog.indexOf( "All coverage checks have been met." ) < 0 ) {
throw new RuntimeException( "Coverage checks were not met." );
}
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-includes-excludes/ 0000775 0000000 0000000 00000000000 13042174274 0024252 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-includes-excludes/pom.xml 0000664 0000000 0000000 00000003150 13042174274 0025566 0 ustar 00root root 0000000 0000000
4.0.0jacocosetup-parent1.0-SNAPSHOTit-includes-excludes@project.groupId@jacoco-maven-plugin**/FileUtil***/TestUtil*prepare-agentprepare-agentreportprepare-packagereport
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-includes-excludes/src/ 0000775 0000000 0000000 00000000000 13042174274 0025041 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-includes-excludes/src/main/ 0000775 0000000 0000000 00000000000 13042174274 0025765 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-includes-excludes/src/main/java/ 0000775 0000000 0000000 00000000000 13042174274 0026706 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-includes-excludes/src/main/java/org/ 0000775 0000000 0000000 00000000000 13042174274 0027475 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-includes-excludes/src/main/java/org/project/ 0000775 0000000 0000000 00000000000 13042174274 0031143 5 ustar 00root root 0000000 0000000 DatabaseUtil.java 0000664 0000000 0000000 00000001265 13042174274 0034275 0 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-includes-excludes/src/main/java/org/project /*******************************************************************************
* Copyright (c) 2009, 2016 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
*
*******************************************************************************/
package org.project;
public class DatabaseUtil {
public void doStuff() {
System.out.println("Do DatabaseUtil Stuff");
}
}
FileUtil.java 0000664 0000000 0000000 00000001255 13042174274 0033447 0 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-includes-excludes/src/main/java/org/project /*******************************************************************************
* Copyright (c) 2009, 2016 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
*
*******************************************************************************/
package org.project;
public class FileUtil {
public void doStuff() {
System.out.println("Do FileUtil Stuff");
}
}
TestUtil.java 0000664 0000000 0000000 00000001255 13042174274 0033507 0 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-includes-excludes/src/main/java/org/project /*******************************************************************************
* Copyright (c) 2009, 2016 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
*
*******************************************************************************/
package org.project;
public class TestUtil {
public void doStuff() {
System.out.println("Do TestUtil Stuff");
}
}
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-includes-excludes/src/test/ 0000775 0000000 0000000 00000000000 13042174274 0026020 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-includes-excludes/src/test/java/ 0000775 0000000 0000000 00000000000 13042174274 0026741 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-includes-excludes/src/test/java/org/ 0000775 0000000 0000000 00000000000 13042174274 0027530 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-includes-excludes/src/test/java/org/project/ 0000775 0000000 0000000 00000000000 13042174274 0031176 5 ustar 00root root 0000000 0000000 TestDatabaseUtil.java 0000664 0000000 0000000 00000001315 13042174274 0035164 0 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-includes-excludes/src/test/java/org/project /*******************************************************************************
* Copyright (c) 2009, 2016 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
*
*******************************************************************************/
package org.project;
import org.junit.Test;
public class TestDatabaseUtil {
@Test
public void testDoStuff() {
new DatabaseUtil().doStuff();
}
}
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-includes-excludes/verify.bsh 0000664 0000000 0000000 00000002511 13042174274 0026253 0 ustar 00root root 0000000 0000000 /*******************************************************************************
* Copyright (c) 2009, 2016 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
*
*******************************************************************************/
import java.io.*;
import org.codehaus.plexus.util.*;
String agentOptions = "excludes=**/FileUtil*:**/TestUtil*";
String buildLog = FileUtils.fileRead( new File( basedir, "build.log" ) );
if ( buildLog.indexOf( agentOptions ) < 0 ) {
throw new RuntimeException("Include/Exclude was not configured correct" );
}
File databaseUtilReportFile = new File( basedir, "target/site/jacoco/org.project/DatabaseUtil.html" );
if ( !databaseUtilReportFile.isFile() )
{
throw new FileNotFoundException( "DatabaseUtil should NOT be excluded: " + databaseUtilReportFile );
}
File testUtilReportFile = new File( basedir, "target/site/jacoco/org.project/TestUtil.html" );
if ( testUtilReportFile.isFile() )
{
throw new RuntimeException( "TestUtil SHOULD be excluded: " + testUtilReportFile );
}
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-java9/ 0000775 0000000 0000000 00000000000 13042174274 0021644 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-java9/invoker.properties 0000664 0000000 0000000 00000000034 13042174274 0025434 0 ustar 00root root 0000000 0000000 invoker.java.version = 1.9+
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-java9/pom.xml 0000664 0000000 0000000 00000004464 13042174274 0023171 0 ustar 00root root 0000000 0000000
4.0.0jacocosetup-parent1.0-SNAPSHOT../setup-parentit-java9org.apache.maven.pluginsmaven-compiler-plugin1.9@project.groupId@jacoco-maven-pluginprepare-agentreportcheckcheckINSTRUCTIONCOVEREDCOUNT88
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-java9/src/ 0000775 0000000 0000000 00000000000 13042174274 0022433 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-java9/src/main/ 0000775 0000000 0000000 00000000000 13042174274 0023357 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-java9/src/main/java/ 0000775 0000000 0000000 00000000000 13042174274 0024300 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-java9/src/main/java/Example.java 0000664 0000000 0000000 00000001310 13042174274 0026531 0 ustar 00root root 0000000 0000000 /*******************************************************************************
* Copyright (c) 2009, 2016 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
*
*******************************************************************************/
public class Example {
public void sayHello(String name) {
// http://openjdk.java.net/jeps/280
System.out.println("Hello, " + name);
}
}
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-java9/src/test/ 0000775 0000000 0000000 00000000000 13042174274 0023412 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-java9/src/test/java/ 0000775 0000000 0000000 00000000000 13042174274 0024333 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-java9/src/test/java/ExampleTest.java 0000664 0000000 0000000 00000001257 13042174274 0027436 0 ustar 00root root 0000000 0000000 /*******************************************************************************
* Copyright (c) 2009, 2016 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
*
*******************************************************************************/
import org.junit.Test;
public class ExampleTest {
@Test
public void test() {
new Example().sayHello("test");
}
}
jacoco-0.7.8/jacoco-maven-plugin.test/it/it-merge-passes/ 0000775 0000000 0000000 00000000000 13042174274 0023225 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-merge-passes/it-merge-passes-merge/ 0000775 0000000 0000000 00000000000 13042174274 0027327 5 ustar 00root root 0000000 0000000 jacoco-0.7.8/jacoco-maven-plugin.test/it/it-merge-passes/it-merge-passes-merge/pom.xml 0000664 0000000 0000000 00000003176 13042174274 0030653 0 ustar 00root root 0000000 0000000
4.0.0jacocoit-merge-passes1.0-SNAPSHOTit-merge-passes-merge@project.groupId@jacoco-maven-pluginmergemerge${project.parent.build.directory}*.exec