aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-jacoco-plugin/src
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-11-11 23:35:21 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-11-11 23:36:27 +0400
commitf791c0633163b58023a3e465eb207f62f8d37ff7 (patch)
treee49b8a5dfe3bf2cfd57f0a0f648a6878b32fc15d /plugins/sonar-jacoco-plugin/src
parent4727c5b4a51997aaa27ee5386fa3f3a31db121d1 (diff)
downloadsonarqube-f791c0633163b58023a3e465eb207f62f8d37ff7.tar.gz
sonarqube-f791c0633163b58023a3e465eb207f62f8d37ff7.zip
SONAR-2792 Improve messages in case if JaCoCo unable to compute coverage
Diffstat (limited to 'plugins/sonar-jacoco-plugin/src')
-rw-r--r--plugins/sonar-jacoco-plugin/src/main/java/org/sonar/plugins/jacoco/AbstractAnalyzer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/sonar-jacoco-plugin/src/main/java/org/sonar/plugins/jacoco/AbstractAnalyzer.java b/plugins/sonar-jacoco-plugin/src/main/java/org/sonar/plugins/jacoco/AbstractAnalyzer.java
index 2b226f2e69c..d737221d49b 100644
--- a/plugins/sonar-jacoco-plugin/src/main/java/org/sonar/plugins/jacoco/AbstractAnalyzer.java
+++ b/plugins/sonar-jacoco-plugin/src/main/java/org/sonar/plugins/jacoco/AbstractAnalyzer.java
@@ -44,7 +44,7 @@ public abstract class AbstractAnalyzer {
public final void analyse(Project project, SensorContext context) {
final File buildOutputDir = project.getFileSystem().getBuildOutputDir();
if (!buildOutputDir.exists()) {
- JaCoCoUtils.LOG.info("Can't find build output directory: {}. Skipping JaCoCo analysis.", buildOutputDir);
+ JaCoCoUtils.LOG.info("Project coverage is set to 0% as build output directory doesn't exists: {}", buildOutputDir);
return;
}
String path = getReportPath(project);
@@ -61,7 +61,7 @@ public abstract class AbstractAnalyzer {
ExecutionDataStore executionDataStore = new ExecutionDataStore();
if (jacocoExecutionData == null || !jacocoExecutionData.exists() || !jacocoExecutionData.isFile()) {
- JaCoCoUtils.LOG.info("Can't find JaCoCo execution data : {}. Project coverage is set to 0%.", jacocoExecutionData);
+ JaCoCoUtils.LOG.info("Project coverage is set to 0% as no JaCoCo execution data has been dumped: {}", jacocoExecutionData);
} else {
JaCoCoUtils.LOG.info("Analysing {}", jacocoExecutionData);
ExecutionDataReader reader = new ExecutionDataReader(new FileInputStream(jacocoExecutionData));