Uploaded image for project: 'Maven PMD Plugin'
  1. Maven PMD Plugin
  2. MPMD-193

CPD's sourceEncoding not set since PMD 5.1.1 is used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2, 3.3, 3.4
    • 3.4
    • CPD
    • None
    • Patch

    Description

      Since PMD 5.1.1, CPDConfiguration adds a method postContruct().
      This method is used to set the sourceEncoding property used to read source files in PMD.
      If the sourceEncoding not set, CPD will use the platform default encoding to read the source files and maven-pmd-plugin's encoding has no effects.

      Attachments

        1. CpdReport.java.patch
          0.6 kB
          Tweea Tang
        2. CpdReport.java(setSourceEncoding).patch
          0.6 kB
          Tweea Tang

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              tweea Tweea Tang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: