You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2023/12/10 20:39:15 UTC
(maven-site-plugin) branch master updated: Use AbstractMavenReport#getReportOutputDirectory() consistently
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-site-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new fdb02ab9 Use AbstractMavenReport#getReportOutputDirectory() consistently
fdb02ab9 is described below
commit fdb02ab984fd62f61219af61084f5b9ad7132796
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Sun Dec 10 21:39:05 2023 +0100
Use AbstractMavenReport#getReportOutputDirectory() consistently
---
.../project/src/main/java/org/apache/maven/plugins/it/MyReport.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/it/projects/MSITE-842/project/src/main/java/org/apache/maven/plugins/it/MyReport.java b/src/it/projects/MSITE-842/project/src/main/java/org/apache/maven/plugins/it/MyReport.java
index c00c6fc9..7044cca5 100644
--- a/src/it/projects/MSITE-842/project/src/main/java/org/apache/maven/plugins/it/MyReport.java
+++ b/src/it/projects/MSITE-842/project/src/main/java/org/apache/maven/plugins/it/MyReport.java
@@ -69,7 +69,7 @@ public class MyReport
Sink anotherSink;
try
{
- anotherSink = getSinkFactory().createSink( outputDirectory, "another-page.html" );
+ anotherSink = getSinkFactory().createSink( getReportOutputDirectory(), "another-page.html" );
}
catch ( IOException e )
{
@@ -81,7 +81,7 @@ public class MyReport
anotherSink.text( "Another Sink" );
// Create a new sink, in a subdirectory
- File subDirectory = new File( outputDirectory, "sub" );
+ File subDirectory = new File( getReportOutputDirectory(), "sub" );
Sink subDirectorySink;
try
{