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-checkstyle-plugin.git
The following commit(s) were added to refs/heads/master by this push: new eb71af5 Consistently use MavenReport#getReportOutputDirectory() eb71af5 is described below commit eb71af5742867c121636a66d0055425fec744071 Author: Michael Osipov <micha...@apache.org> AuthorDate: Tue Nov 14 19:53:49 2023 +0100 Consistently use MavenReport#getReportOutputDirectory() --- .../org/apache/maven/plugins/checkstyle/AbstractCheckstyleReport.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/maven/plugins/checkstyle/AbstractCheckstyleReport.java b/src/main/java/org/apache/maven/plugins/checkstyle/AbstractCheckstyleReport.java index 6ee0987..ef4bbc2 100644 --- a/src/main/java/org/apache/maven/plugins/checkstyle/AbstractCheckstyleReport.java +++ b/src/main/java/org/apache/maven/plugins/checkstyle/AbstractCheckstyleReport.java @@ -685,7 +685,8 @@ public abstract class AbstractCheckstyleReport extends AbstractMavenReport { } private String determineRelativePath(File location) { - String relativePath = PathTool.getRelativePath(getOutputDirectory(), location.getAbsolutePath()); + String relativePath = PathTool.getRelativePath(getReportOutputDirectory().getAbsolutePath(), + location.getAbsolutePath()); if (relativePath == null || relativePath.trim().isEmpty()) { relativePath = "."; }