We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd1f630 commit eb71af5Copy full SHA for eb71af5
src/main/java/org/apache/maven/plugins/checkstyle/AbstractCheckstyleReport.java
@@ -685,7 +685,8 @@ private void initializeXrefTestLocation(CheckstyleReportRenderer renderer) {
685
}
686
687
private String determineRelativePath(File location) {
688
- String relativePath = PathTool.getRelativePath(getOutputDirectory(), location.getAbsolutePath());
+ String relativePath = PathTool.getRelativePath(getReportOutputDirectory().getAbsolutePath(),
689
+ location.getAbsolutePath());
690
if (relativePath == null || relativePath.trim().isEmpty()) {
691
relativePath = ".";
692
0 commit comments