From ceac0bfb517d8d5fa095031d6bd57e6d4271bb60 Mon Sep 17 00:00:00 2001 From: Michael Osipov Date: Fri, 17 Nov 2023 21:48:02 +0100 Subject: [PATCH] Consistently use MavenReport#getReportOutputDirectory() --- .../projectinfo/AbstractProjectInfoReport.java | 15 --------------- .../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 9829e947..04d913e1 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 @@ protected boolean isEmpty(Collection coll) { 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 9011399a..41da98e3 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 boolean canGenerateReport() { @Override public void executeReport(Locale locale) { try { - copyResources(new File(getOutputDirectory())); + copyResources(getReportOutputDirectory()); } catch (IOException e) { getLog().error("Cannot copy resources", e); }