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

Tibor Digana closed SUREFIRE-1052.
----------------------------------

    Resolution: Won't Fix

Using this configuration is fine on Oracle VM, I tried!
<configuration><argLine>-Dfile.encoding=${project.build.sourceEncoding}</argLine></configuration>

We don't need to handle the "sourceEncoding".
We are handling ${project.reporting.outputEncoding} only for Xml reporting but 
that's different.

> Use "project.build.sourceEncoding"-Property by default for forked jvm
> ---------------------------------------------------------------------
>
>                 Key: SUREFIRE-1052
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-1052
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: classloading, Maven Surefire Plugin, process forking
>    Affects Versions: 2.10, 2.16
>            Reporter: Dieter König
>         Attachments: pom.xml, SurefireEncodingTestCase.java
>
>
> maven-surefire-plugin is ignoring "project.build.sourceEncoding"-property 
> when forking jvm for testcase execution.
> The attached testcase fails with surefire for a project configured as UTF-8 
> but is successful when executed in eclipse.
> Known Workaround:
> Configure surefire in the following way 
> <configuration><argLine>-Dfile.encoding=${project.build.sourceEncoding}</argLine></configuration>
> P.S.: Unfortunately the oracle jvm itself is also unsafe. Executing the 
> testcase with java.exe (without file.encoding-argument) gives AssertionError, 
> executing with javaw.exe (without file.encoding-argument) is successful.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to