Skip to content

Commit ceac0bf

Browse files
committed
Consistently use MavenReport#getReportOutputDirectory()
1 parent c16ec94 commit ceac0bf

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

src/main/java/org/apache/maven/report/projectinfo/AbstractProjectInfoReport.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -187,21 +187,6 @@ protected boolean isEmpty(Collection<?> coll) {
187187
return coll == null || coll.isEmpty();
188188
}
189189

190-
@Override
191-
protected String getOutputDirectory() {
192-
return outputDirectory.getAbsolutePath();
193-
}
194-
195-
@Override
196-
public File getReportOutputDirectory() {
197-
return outputDirectory;
198-
}
199-
200-
@Override
201-
public void setReportOutputDirectory(File reportOutputDirectory) {
202-
this.outputDirectory = reportOutputDirectory;
203-
}
204-
205190
@Override
206191
protected MavenProject getProject() {
207192
return project;

src/main/java/org/apache/maven/report/projectinfo/DependenciesReport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public boolean canGenerateReport() {
124124
@Override
125125
public void executeReport(Locale locale) {
126126
try {
127-
copyResources(new File(getOutputDirectory()));
127+
copyResources(getReportOutputDirectory());
128128
} catch (IOException e) {
129129
getLog().error("Cannot copy resources", e);
130130
}

0 commit comments

Comments
 (0)