Uploaded image for project: 'Maven Checkstyle Plugin'
  1. Maven Checkstyle Plugin
  2. MCHECKSTYLE-99

<includeTestSourceDirectory> should use default test sources xref output dir: ${project.reporting.outputDirectory}/xref-test

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Auto Closed
    • Affects Version/s: 2.2
    • Fix Version/s: None
    • Component/s: checkstyle:checkstyle
    • Labels:
      None
    • Environment:
      Linux (but I assume it happens in all environs)

      Description

      The xref link to the Source pages in the checkstyle report page is
      broken. The source xref link for Unit Test Source files is not using the
      default value of the destDir for jxr test sources. From the jxr plugin docs
      for jxr:test-jxr:

      destDir

      Folder where the Xref files will be copied to.

      • Type: java.lang.String
      • Required: No
      • Expression: ${project.reporting.outputDirectory}/xref-test

      I think the checkstyle plugin should:

      • assume the default dir for jxr:test-jxr
      • provide it's own additional override setting (similar to xrefLocation,
        but for test sources). like: testXrefLocation.

      A pom file exhibiting this problem is attached.

      Dan Rollo

        Attachments

        1. pom.xml
          11 kB
          Dan Rollo

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bhamail Dan Rollo
              • Votes:
                3 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: