Skip to content

Commit

Permalink
Consistently use MavenReport#getReportOutputDirectory()
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-o committed Nov 14, 2023
1 parent fd1f630 commit eb71af5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,8 @@ private void initializeXrefTestLocation(CheckstyleReportRenderer renderer) {
}

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 = ".";
}
Expand Down

0 comments on commit eb71af5

Please sign in to comment.