This is an automated email from the ASF dual-hosted git repository. michaelo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-project-info-reports-plugin.git
commit ceac0bfb517d8d5fa095031d6bd57e6d4271bb60 Author: Michael Osipov <micha...@apache.org> AuthorDate: Fri Nov 17 21:48:02 2023 +0100 Consistently use MavenReport#getReportOutputDirectory() --- .../report/projectinfo/AbstractProjectInfoReport.java | 15 --------------- .../maven/report/projectinfo/DependenciesReport.java | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/src/main/java/org/apache/maven/report/projectinfo/AbstractProjectInfoReport.java b/src/main/java/org/apache/maven/report/projectinfo/AbstractProjectInfoReport.java index 9829e94..04d913e 100644 --- a/src/main/java/org/apache/maven/report/projectinfo/AbstractProjectInfoReport.java +++ b/src/main/java/org/apache/maven/report/projectinfo/AbstractProjectInfoReport.java @@ -187,21 +187,6 @@ public abstract class AbstractProjectInfoReport extends AbstractMavenReport { return coll == null || coll.isEmpty(); } - @Override - protected String getOutputDirectory() { - return outputDirectory.getAbsolutePath(); - } - - @Override - public File getReportOutputDirectory() { - return outputDirectory; - } - - @Override - public void setReportOutputDirectory(File reportOutputDirectory) { - this.outputDirectory = reportOutputDirectory; - } - @Override protected MavenProject getProject() { return project; diff --git a/src/main/java/org/apache/maven/report/projectinfo/DependenciesReport.java b/src/main/java/org/apache/maven/report/projectinfo/DependenciesReport.java index 9011399..41da98e 100644 --- a/src/main/java/org/apache/maven/report/projectinfo/DependenciesReport.java +++ b/src/main/java/org/apache/maven/report/projectinfo/DependenciesReport.java @@ -124,7 +124,7 @@ public class DependenciesReport extends AbstractProjectInfoReport { @Override public void executeReport(Locale locale) { try { - copyResources(new File(getOutputDirectory())); + copyResources(getReportOutputDirectory()); } catch (IOException e) { getLog().error("Cannot copy resources", e); }