maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SebbASF (JIRA)" <j...@codehaus.org>
Subject [jira] (MRESOURCES-175) Bad encoding in filtering
Date Thu, 04 Jul 2013 21:48:05 GMT

    [ https://jira.codehaus.org/browse/MRESOURCES-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=328030#comment-328030
] 

SebbASF commented on MRESOURCES-175:
------------------------------------

Using Properties#load(Reader) rather than Properties#load(InputStream) would solve the problem,
unfortunately the method requires Java 1.6.

In the meantime it might perhaps be possible to use Commons IO:

http://commons.apache.org/proper/commons-io/javadocs/api-release/org/apache/commons/io/input/ReaderInputStream.html

I've not tried to see if this works.
                
> Bad encoding in filtering
> -------------------------
>
>                 Key: MRESOURCES-175
>                 URL: https://jira.codehaus.org/browse/MRESOURCES-175
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>          Components: filtering
>    Affects Versions: 2.6
>         Environment: jdk1.6.0_43
>            Reporter: Pavel Zinoviev
>            Assignee: Robert Scholte
>            Priority: Blocker
>
> I have a resources
> {code:xml}
> <resources>
>  <resource>
>   <directory>src/main/resources</directory>
>   <filtering>true</filtering>				
>   <excludes>
>    <exclude>filters/**.*</exclude>
>   </excludes>
>  </resource>
> </resources>
> {code}
> and
> {code:xml}
> <filters>
>  <filter>src/main/resources/filters/filter-ru.properties</filter>			
> </filters>
> {code}
> in maven-resource-plugin defined UTF-8 encoding.
> but result of 'mvn resources:resources' is unreadable... It's not utf-8. May be loading
of filter file performed with some default encoding?

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

Mime
View raw message