From issues-return-85877-apmail-maven-issues-archive=maven.apache.org@maven.apache.org Fri Jun 28 08:28:37 2013 Return-Path: X-Original-To: apmail-maven-issues-archive@minotaur.apache.org Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5AEE8C5F6 for ; Fri, 28 Jun 2013 08:28:37 +0000 (UTC) Received: (qmail 67847 invoked by uid 500); 28 Jun 2013 08:28:36 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 67672 invoked by uid 500); 28 Jun 2013 08:28:35 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 67482 invoked by uid 99); 28 Jun 2013 08:28:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jun 2013 08:28:29 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=SPF_PASS,T_FRT_PROFILE2 X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [63.246.24.159] (HELO codehaus01.managed.contegix.com) (63.246.24.159) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jun 2013 08:28:24 +0000 Received: from codehaus01 (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 553AAB1041 for ; Fri, 28 Jun 2013 03:28:03 -0500 (CDT) Date: Fri, 28 Jun 2013 03:28:03 -0500 (CDT) From: "Emeric MARTINEAU (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] (MRESOURCES-175) Bad encoding in filtering MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 22cf62d5d84cf5bea94eb3b65e0ebd09 X-Virus-Checked: Checked by ClamAV on apache.org [ https://jira.codehaus.org/browse/MRESOURCES-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=327511#comment-327511 ] Emeric MARTINEAU edited comment on MRESOURCES-175 at 6/28/13 3:27 AM: ---------------------------------------------------------------------- Hi, Is not a bug, I not also a feature ! Maven upto 3.0.x use maven-filtering library as part of Maven project. Class to load file contains properties is "PropertyUtils" (loadPropertyFile is method used). If you look this class, you find : public static Properties loadPropertyFile( File propFile, Properties baseProps ) throws IOException { if ( !propFile.exists() ) { throw new FileNotFoundException( propFile.toString() ); } final Properties fileProps = new Properties(); final FileInputStream inStream = new FileInputStream( propFile ); ... You can see file is open by using "FileInputStream" but without encoding parameter. I think you may create a feature request for this on http://jira.codehaus.org/browse/MNG. Cause all plugin using filtering have this issue (I try with assembly plugin). Regards, Emeric was (Author: bubulemaster): Hi, Is not a but, I not also a feature ! Maven upto 3.0.x use maven-filtering library as part of Maven project. Class to load file contains properties is "PropertyUtils" (loadPropertyFile is method used). If you look this class, you find : public static Properties loadPropertyFile( File propFile, Properties baseProps ) throws IOException { if ( !propFile.exists() ) { throw new FileNotFoundException( propFile.toString() ); } final Properties fileProps = new Properties(); final FileInputStream inStream = new FileInputStream( propFile ); ... You can see file is open by using "FileInputStream" but without encoding parameter. I think you may create a feature request for this on http://jira.codehaus.org/browse/MNG. Cause all plugin using filtering have this issue (I try with assembly plugin). Regards, Emeric > 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 > Priority: Blocker > > I have a resources > > > src/main/resources > true > > filters/**.* > > > > and > > src/main/resources/filters/filter-ru.properties > > 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