Mojo's Taglist Maven Plugin
  1. Mojo's Taglist Maven Plugin
  2. MTAGLIST-27

need a feature to set the encoding of source files.

    Details

    • Type: Wish Wish
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.3
    • Labels:
      None
    • Environment:
      window xp chinese version
      jdk-1.5.0_12
    • Number of attachments :
      2

      Description

      The default encoding of my os is GBK, but the encoding of source files is UTF-8.
      The java.io.FileReader will use the default encoding of the os, then taglist report cannot get the correct result.

      Could we have a parameter to set the encoding of the source files? thanks.

      1. source-encoding.patch
        5 kB
        Benjamin Bentmann

        Issue Links

          Activity

          Hide
          Benjamin Bentmann added a comment -

          Fix attached. Also attached is a mini project to verify its function. The source file uses UTF-8 and contains the tag "TÖDÖ". The taglist report will not list this occurrence if the wrong encoding is used (e.g. Latin-1).

          Show
          Benjamin Bentmann added a comment - Fix attached. Also attached is a mini project to verify its function. The source file uses UTF-8 and contains the tag "TÖDÖ". The taglist report will not list this occurrence if the wrong encoding is used (e.g. Latin-1).
          Show
          Herve Boutemy added a comment - - edited done in r7059, see http://docs.codehaus.org/display/MAVENUSER/POM+Element+for+Source+File+Encoding

            People

            • Assignee:
              Herve Boutemy
              Reporter:
              Xuhuisheng
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: