[ 
http://jira.codehaus.org/browse/SUREFIRE-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=132897#action_132897
 ] 

Dan Fabulich commented on SUREFIRE-491:
---------------------------------------

This is happening due to the fix for SUREFIRE-121.  I was afraid when I did 
this that it was risky:

http://www.nabble.com/passing-system-properties-to-forked-test-td13947630.html

I even included a comment in the code: [Is this 
wise?|http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java?r1=598217&r2=598216&pathrev=598217]

In hindsight, it was not wise; the initial implementation broke the embedder.  
Milos fixed that later, but it's still doing the wrong thing from the command 
line.

I'm not exactly sure how to fix this without breaking the fix available in 
SUREFIRE-121...?

> All system properties from Maven process are copied to forked Surefire process
> ------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-491
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-491
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: process forking
>    Affects Versions: 2.5
>            Reporter: Dan Fabulich
>
> Run a Surefire test with a different JVM using the -Djvm argument.  For 
> example, run the test with JDK 1.4 while running Maven with a 1.5 or 1.6 JVM.
> Examine the XML file in target/surefire-reports corresponding to your test.  
> The java.* properties will match the parent process, not the forked process.  
> For example, <property name="java.version" value="1.6.0_02"/>.

-- 
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

        

Reply via email to