You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Ha Ryon (JIRA)" <ji...@codehaus.org> on 2009/04/30 16:29:44 UTC
[jira] Created: (MRESOURCES-88) Allow specific encoding per group
of files
Allow specific encoding per group of files
------------------------------------------
Key: MRESOURCES-88
URL: http://jira.codehaus.org/browse/MRESOURCES-88
Project: Maven 2.x Resources Plugin
Issue Type: Improvement
Affects Versions: 2.3
Environment: mvn 2.1.0
Reporter: Ha Ryon
I wish to be able to filter XML and Properties files from within the same project. XML are usually UTF-8, and properties must be Latin 1.
With current version of the plugin I can : specify encoding at the plugin level.
<configuration>
...
<encoding>UTF-8</encoding>
...
</configuration>
And specify at the file level whether it should use filtering :
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
But I can't specify at the file level which encoding to use for filtering :
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<encoding>UTF-8</encoding>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<encoding>ISO-8859-1</encoding>
<includes>
<include>**/*.properties</include>
</includes>
</resource>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira