aboutsummaryrefslogtreecommitdiff
path: root/jacoco-maven-plugin/src/org/jacoco/maven/ReportITMojo.java
diff options
context:
space:
mode:
Diffstat (limited to 'jacoco-maven-plugin/src/org/jacoco/maven/ReportITMojo.java')
-rw-r--r--jacoco-maven-plugin/src/org/jacoco/maven/ReportITMojo.java34
1 files changed, 15 insertions, 19 deletions
diff --git a/jacoco-maven-plugin/src/org/jacoco/maven/ReportITMojo.java b/jacoco-maven-plugin/src/org/jacoco/maven/ReportITMojo.java
index ba4dde2e..0ca4970b 100644
--- a/jacoco-maven-plugin/src/org/jacoco/maven/ReportITMojo.java
+++ b/jacoco-maven-plugin/src/org/jacoco/maven/ReportITMojo.java
@@ -1,9 +1,10 @@
/*******************************************************************************
- * Copyright (c) 2009, 2019 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
+ * Copyright (c) 2009, 2021 Mountainminds GmbH & Co. KG and Contributors
+ * This program and the accompanying materials are made available under
+ * the terms of the Eclipse Public License 2.0 which is available at
+ * http://www.eclipse.org/legal/epl-2.0
+ *
+ * SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Evgeny Mandrikov - initial API and implementation
@@ -28,7 +29,7 @@ import org.jacoco.report.IReportGroupVisitor;
* <li>bound to <code>report-integration</code> phase</li>
* <li>different <code>dataFile</code></li>
* </ul>
- *
+ *
* @since 0.6.4
*/
@Mojo(name = "report-integration", defaultPhase = LifecyclePhase.VERIFY, threadSafe = true)
@@ -57,7 +58,7 @@ public class ReportITMojo extends AbstractReportMojo {
@Override
boolean canGenerateReportRegardingClassesDirectory() {
- return new File(getProject().getBuild().getOutputDirectory()).exists();
+ return new File(project.getBuild().getOutputDirectory()).exists();
}
@Override
@@ -66,29 +67,24 @@ public class ReportITMojo extends AbstractReportMojo {
}
@Override
- void addFormatters(final ReportSupport support, final Locale locale)
- throws IOException {
- support.addAllFormatters(outputDirectory, outputEncoding, footer,
- locale);
+ File getOutputDirectory() {
+ return outputDirectory;
}
@Override
void createReport(final IReportGroupVisitor visitor,
final ReportSupport support) throws IOException {
- support.processProject(visitor, title, getProject(), getIncludes(),
+ support.processProject(visitor, title, project, getIncludes(),
getExcludes(), sourceEncoding);
}
- @Override
- protected String getOutputDirectory() {
- return outputDirectory.getAbsolutePath();
+ public File getReportOutputDirectory() {
+ return outputDirectory;
}
- @Override
public void setReportOutputDirectory(final File reportOutputDirectory) {
- if (reportOutputDirectory != null
- && !reportOutputDirectory.getAbsolutePath().endsWith(
- "jacoco-it")) {
+ if (reportOutputDirectory != null && !reportOutputDirectory
+ .getAbsolutePath().endsWith("jacoco-it")) {
outputDirectory = new File(reportOutputDirectory, "jacoco-it");
} else {
outputDirectory = reportOutputDirectory;