Skip to content

[MRESOURCES-232] Resource copy filtering should use different encoding for source and output #335

Description

@jira-importer

Peng Cheng opened MRESOURCES-232 and commented

In copy-resources goal. The configuration option 'encoding' is documented to be capable of changing the encoding of source files and copy to output directory, e.g.:

<configuration>
    <outputDirectory>${project.basedir}/sbin-ebcdic</outputDirectory>
    <resources>
        <resource>
            <directory>${project.basedir}/sbin</directory>
        </resource>
    </resources>
    <encoding>IBM037</encoding>
</configuration>

However, it is pointed out in the answer section of this post:

http://stackoverflow.com/questions/40095716/why-maven-resources-plugin-ignores-my-charset-encoding-setting

that this option affects both reading of source file and writing of output file, resulting in most of the file encodings not converted. This should be corrected by dividing this option into 2:

sourceEncoding & outputEncoding, which controls reading and writing separately. This is the most simple way to make encoding conversion practical.


Affects: 3.0.1

0 votes, 6 watchers

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions