[ 
https://jira.codehaus.org/browse/MRESOURCES-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alex Collins updated MRESOURCES-171:
------------------------------------

    Attachment: filtering-bug.zip

Test 1
---
- Run "mvn test" and see test error. 
- Change <filtering>false</filtering> from pom.xml>
- Re- "mvn test".

Expected: 

Test passes both times, or some error.

Actual:

Test fails first time (when filtering=true).

Test 2
---
- Set filtering true.
- Execute:

file src/main/resources/test.properties
file target/filtering-bug-1.0/test.properties
target/filtering-bug-1.0/test.properties: 

Expected:

Both files some encoding.

Actual:

Files different encodings.
                
> ISO8859-1 properties files get changed into UTF-8 when filtered
> ---------------------------------------------------------------
>
>                 Key: MRESOURCES-171
>                 URL: https://jira.codehaus.org/browse/MRESOURCES-171
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>          Components: filtering
>            Reporter: Alex Collins
>            Priority: Minor
>         Attachments: filtering-bug.zip
>
>
> Create:
> src/main/resources/test.properties
> And add a ISO8859-1 character that is not ASCII or UTF-8, do not use \uXXXX 
> formatting.
> When adding this line:
> <resource><directory>src/main/resources</directory><filtering>true</filtering></resource>
> Expected:
> ISO8859-1 encoded file in jar.
> Actual:
> UTF-8 encoded file in jar.
> ---
> If there are any property files (which can only be ISO8859-1) they appear to 
> be converted into UTF-8 in the jar.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to