Skip to content

Commit eb71af5

Browse files
committed
Consistently use MavenReport#getReportOutputDirectory()
1 parent fd1f630 commit eb71af5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/apache/maven/plugins/checkstyle/AbstractCheckstyleReport.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,8 @@ private void initializeXrefTestLocation(CheckstyleReportRenderer renderer) {
685685
}
686686

687687
private String determineRelativePath(File location) {
688-
String relativePath = PathTool.getRelativePath(getOutputDirectory(), location.getAbsolutePath());
688+
String relativePath = PathTool.getRelativePath(getReportOutputDirectory().getAbsolutePath(),
689+
location.getAbsolutePath());
689690
if (relativePath == null || relativePath.trim().isEmpty()) {
690691
relativePath = ".";
691692
}

0 commit comments

Comments
 (0)