diff options
Diffstat (limited to 'jacoco-maven-plugin/src/org/jacoco/maven/RestoreMojo.java')
-rw-r--r-- | jacoco-maven-plugin/src/org/jacoco/maven/RestoreMojo.java | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/jacoco-maven-plugin/src/org/jacoco/maven/RestoreMojo.java b/jacoco-maven-plugin/src/org/jacoco/maven/RestoreMojo.java index 0e238d69..13e86901 100644 --- a/jacoco-maven-plugin/src/org/jacoco/maven/RestoreMojo.java +++ b/jacoco-maven-plugin/src/org/jacoco/maven/RestoreMojo.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 @@ -22,19 +23,20 @@ import org.codehaus.plexus.util.FileUtils; /** * Restores original classes as they were before offline instrumentation. - * + * * @since 0.6.2 */ @Mojo(name = "restore-instrumented-classes", defaultPhase = LifecyclePhase.PREPARE_PACKAGE, threadSafe = true) public class RestoreMojo extends AbstractJacocoMojo { @Override - protected void executeMojo() throws MojoExecutionException, - MojoFailureException { - final File originalClassesDir = new File(getProject().getBuild() - .getDirectory(), "generated-classes/jacoco"); - final File classesDir = new File(getProject().getBuild() - .getOutputDirectory()); + protected void executeMojo() + throws MojoExecutionException, MojoFailureException { + final File originalClassesDir = new File( + getProject().getBuild().getDirectory(), + "generated-classes/jacoco"); + final File classesDir = new File( + getProject().getBuild().getOutputDirectory()); try { FileUtils.copyDirectoryStructure(originalClassesDir, classesDir); } catch (final IOException e) { |