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

Generated HTML page contains "charset=${outputEncoding}"

    XMLWordPrintableJSON

    Details

      Description

      Hi,

      when I generate a Checkstyle report with the command mvn checkstyle:checkstyle, the resulting HTML file target/site/checkstyle.html contains the literal string charset=${outputEncoding}. Instead, the variable should be substituted with the actual encoding, i. e. UTF-8. I attached the resulting HTML file to this issue.

      When the Checkstyle plugin is invoked during site generation (with mvn site) the encoding is set correctly.

      This issue is visible when the checkstyle report is created in german and the german special characters aren't rendered correctly.

      Here is the relevant HTML fragment:

      <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
          <meta http-equiv="Content-Type" content="text/html; charset=${outputEncoding}" />
          <title>Checkstyle Ergebnisse</title>
      

      Thanks!
      Stephan

        Attachments

        1. checkstyle.html
          16 kB
          Steven Vollmer

          Issue Links

            Activity

              People

              • Assignee:
                hboutemy Herve Boutemy
                Reporter:
                svollmer Steven Vollmer
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: