[
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