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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2
    • 3.2.0
    • checkstyle:checkstyle
    • None
    • 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

              slachiewicz Sylwester Lachiewicz
              bhamail Dan Rollo
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: