You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Carlo de Wolf (JIRA)" <ji...@codehaus.org> on 2008/08/01 14:46:26 UTC

[jira] Created: (SUREFIRE-510) surefire.test.class.path is not set when forkMode is always

surefire.test.class.path is not set when forkMode is always
-----------------------------------------------------------

                 Key: SUREFIRE-510
                 URL: http://jira.codehaus.org/browse/SUREFIRE-510
             Project: Maven Surefire
          Issue Type: Bug
          Components: classloading
    Affects Versions: 2.4.2
            Reporter: Carlo de Wolf




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

        

[jira] Issue Comment Edited: (SUREFIRE-510) surefire.test.class.path is not set when forkMode is always

Posted by "jmfj (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=164278#action_164278 ] 

jmfj edited comment on SUREFIRE-510 at 2/6/09 12:11 PM:
--------------------------------------------------------

I am still seeing this issue on 2.4.3:

e.g, for configuration

{code:title=pom.xml|borderStyle=solid}
<configuration>
<argLine>-Xmx512m</argLine>
<forkMode>always</forkMode>
</configuration>
{code} 

The following unit test fails ---

{code:title=TestSurefire.java|borderStyle=solid}
public void testSurefireClassPath() {
final String surefireClassPathPropertyName = "surefire.test.class.path";
final String javaClassPathPropertyName = "java.class.path";

final String surefireClassPath = System
                .getProperty(surefireClassPathPropertyName);
final String javaClassPath = System
                .getProperty(javaClassPathPropertyName);

System.out.println(surefireClassPathPropertyName + "="
                + surefireClassPath);
System.out.println(javaClassPathPropertyName + "=" + javaClassPath);

assertNotNull(System.getProperty(surefireClassPathPropertyName));
assertNotNull(System.getProperty(javaClassPathPropertyName));
}
{code} 


      was (Author: mars):
    I am still seeing this issue on 2.4.3:

e.g, for configuration

{code:title=pom.xml|borderStyle=solid}
<configuration>
<argLine>-Xmx512m</argLine>
<forkMode>always</forkMode>
<useManifestOnlyJar>true</useManifestOnlyJar>
</configuration>
{code} 

The following unit test fails ---

{code:title=TestSurefire.java|borderStyle=solid}
public void testSurefireClassPath() {
final String surefireClassPathPropertyName = "surefire.test.class.path";
final String javaClassPathPropertyName = "java.class.path";

final String surefireClassPath = System
                .getProperty(surefireClassPathPropertyName);
final String javaClassPath = System
                .getProperty(javaClassPathPropertyName);

System.out.println(surefireClassPathPropertyName + "="
                + surefireClassPath);
System.out.println(javaClassPathPropertyName + "=" + javaClassPath);

assertNotNull(System.getProperty(surefireClassPathPropertyName));
assertNotNull(System.getProperty(javaClassPathPropertyName));
}
{code} 

  
> surefire.test.class.path is not set when forkMode is always
> -----------------------------------------------------------
>
>                 Key: SUREFIRE-510
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-510
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: classloading
>    Affects Versions: 2.4.2
>            Reporter: Carlo de Wolf
>


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

        

[jira] Commented: (SUREFIRE-510) surefire.test.class.path is not set when forkMode is always

Posted by "Carlo de Wolf (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=143843#action_143843 ] 

Carlo de Wolf commented on SUREFIRE-510:
----------------------------------------

Fixed in 2.4.3

> surefire.test.class.path is not set when forkMode is always
> -----------------------------------------------------------
>
>                 Key: SUREFIRE-510
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-510
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: classloading
>    Affects Versions: 2.4.2
>            Reporter: Carlo de Wolf
>


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

        

[jira] Closed: (SUREFIRE-510) surefire.test.class.path is not set when forkMode is always

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Rosenvold closed SUREFIRE-510.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.7.2
         Assignee: Kristian Rosenvold

Fixed in r1054471

> surefire.test.class.path is not set when forkMode is always
> -----------------------------------------------------------
>
>                 Key: SUREFIRE-510
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-510
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: classloading
>    Affects Versions: 2.4.2
>            Reporter: Carlo de Wolf
>            Assignee: Kristian Rosenvold
>             Fix For: 2.7.2
>
>


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

        

[jira] Commented: (SUREFIRE-510) surefire.test.class.path is not set when forkMode is always

Posted by "jmfj (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=164278#action_164278 ] 

jmfj commented on SUREFIRE-510:
-------------------------------

I am still seeing this issue on 2.4.3:

e.g, for configuration

{code:title=pom.xml|borderStyle=solid}
					<configuration>
						<argLine>-Xmx512m</argLine>
						<forkMode>always</forkMode>
						<useManifestOnlyJar>true</useManifestOnlyJar>
					</configuration>
{code} 

The following unit test fails ---

{code:title=TestSurefire.java|borderStyle=solid}
    public void testSurefireClassPath() {
        final String surefireClassPathPropertyName = "surefire.test.class.path";
        final String javaClassPathPropertyName = "java.class.path";

        final String surefireClassPath = System
                .getProperty(surefireClassPathPropertyName);
        final String javaClassPath = System
                .getProperty(javaClassPathPropertyName);

        System.out.println(surefireClassPathPropertyName + "="
                + surefireClassPath);
        System.out.println(javaClassPathPropertyName + "=" + javaClassPath);

        assertNotNull(System.getProperty(surefireClassPathPropertyName));
        assertNotNull(System.getProperty(javaClassPathPropertyName));
    }
{code} 


> surefire.test.class.path is not set when forkMode is always
> -----------------------------------------------------------
>
>                 Key: SUREFIRE-510
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-510
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: classloading
>    Affects Versions: 2.4.2
>            Reporter: Carlo de Wolf
>


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

        

[jira] Issue Comment Edited: (SUREFIRE-510) surefire.test.class.path is not set when forkMode is always

Posted by "jmfj (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=164278#action_164278 ] 

jmfj edited comment on SUREFIRE-510 at 2/6/09 12:10 PM:
--------------------------------------------------------

I am still seeing this issue on 2.4.3:

e.g, for configuration

{code:title=pom.xml|borderStyle=solid}
<configuration>
<argLine>-Xmx512m</argLine>
<forkMode>always</forkMode>
<useManifestOnlyJar>true</useManifestOnlyJar>
</configuration>
{code} 

The following unit test fails ---

{code:title=TestSurefire.java|borderStyle=solid}
public void testSurefireClassPath() {
final String surefireClassPathPropertyName = "surefire.test.class.path";
final String javaClassPathPropertyName = "java.class.path";

final String surefireClassPath = System
                .getProperty(surefireClassPathPropertyName);
final String javaClassPath = System
                .getProperty(javaClassPathPropertyName);

System.out.println(surefireClassPathPropertyName + "="
                + surefireClassPath);
System.out.println(javaClassPathPropertyName + "=" + javaClassPath);

assertNotNull(System.getProperty(surefireClassPathPropertyName));
assertNotNull(System.getProperty(javaClassPathPropertyName));
}
{code} 


      was (Author: mars):
    I am still seeing this issue on 2.4.3:

e.g, for configuration

{code:title=pom.xml|borderStyle=solid}
					<configuration>
						<argLine>-Xmx512m</argLine>
						<forkMode>always</forkMode>
						<useManifestOnlyJar>true</useManifestOnlyJar>
					</configuration>
{code} 

The following unit test fails ---

{code:title=TestSurefire.java|borderStyle=solid}
    public void testSurefireClassPath() {
        final String surefireClassPathPropertyName = "surefire.test.class.path";
        final String javaClassPathPropertyName = "java.class.path";

        final String surefireClassPath = System
                .getProperty(surefireClassPathPropertyName);
        final String javaClassPath = System
                .getProperty(javaClassPathPropertyName);

        System.out.println(surefireClassPathPropertyName + "="
                + surefireClassPath);
        System.out.println(javaClassPathPropertyName + "=" + javaClassPath);

        assertNotNull(System.getProperty(surefireClassPathPropertyName));
        assertNotNull(System.getProperty(javaClassPathPropertyName));
    }
{code} 

  
> surefire.test.class.path is not set when forkMode is always
> -----------------------------------------------------------
>
>                 Key: SUREFIRE-510
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-510
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: classloading
>    Affects Versions: 2.4.2
>            Reporter: Carlo de Wolf
>


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