You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Christian Schulte (JIRA)" <ji...@codehaus.org> on 2009/04/06 00:41:12 UTC
[jira] Updated: (MRRESOURCES-36) ${project.build.sourceEncoding}
not honoured.
[ http://jira.codehaus.org/browse/MRRESOURCES-36?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Schulte updated MRRESOURCES-36:
-----------------------------------------
Attachment: MRRESOURCES-36-4.zip
MRRESOURCES-36-4.patch
Added tests. MRRESOURCES-36-4.patch is the patchfile. MRRESOURCES-36-4.zip contains test resources (unzip relative to the plugins basedir). When adding the test resources from the zip to subversion, the subversion property svn:mime-type should be set to application/octet-stream to mark these resources binary. For example:
{code}
svn add src/test/resources/UTF-8.bin.vm
svn add src/test/resources/ISO-8859-1.bin.vm
svn propset svn:mime-type application/octet-stream src/test/resources/UTF-8.bin.vm
svn propset svn:mime-type application/octet-stream src/test/resources/ISO-8859-1.bin.vm
{code}
> ${project.build.sourceEncoding} not honoured.
> ---------------------------------------------
>
> Key: MRRESOURCES-36
> URL: http://jira.codehaus.org/browse/MRRESOURCES-36
> Project: Maven 2.x Remote Resources Plugin
> Issue Type: New Feature
> Affects Versions: 1.0-alpha-1, 1.0-alpha-2, 1.0-alpha-3, 1.0-alpha-4, 1.0-alpha-5, 1.0-alpha-6, 1.0-beta-2, 1.0
> Environment: Maven version: 2.0.9
> Java version: 1.6.0_07
> OS name: "linux" version: "2.6.27.6-workstation" arch: "i386" Family: "unix"
> Reporter: Christian Schulte
> Priority: Blocker
> Attachments: MRRESOURCES-36, MRRESOURCES-36-2, MRRESOURCES-36-3.patch, MRRESOURCES-36-4.patch, MRRESOURCES-36-4.zip
>
>
> Velocity has its own default encoding (ISO-8859-1) when reading templates and does not honour the current environment setting. Also the plugin ignores any source encoding which leads to encoding issues for any non-ASCII resources. The attached patch adds a new mojo parameter sourceEncoding which defaults to ${project.build.sourceEncoding} and makes copying and appending to resources encoding aware.
--
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