You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Eric Pederson (JIRA)" <ji...@codehaus.org> on 2014/03/11 22:24:59 UTC
[jira] (SUREFIRE-1068) forkNumber in systemPropertyVariables
requires prefix
Eric Pederson created SUREFIRE-1068:
---------------------------------------
Summary: forkNumber in systemPropertyVariables requires prefix
Key: SUREFIRE-1068
URL: https://jira.codehaus.org/browse/SUREFIRE-1068
Project: Maven Surefire
Issue Type: Bug
Components: Maven Surefire Plugin
Affects Versions: 2.16
Reporter: Eric Pederson
Priority: Minor
If {{${surefire.forkNumber} }} is used alone in a {{systemPropertyVariable}} it resolves as null. Workaround is to prefix the value.
For example, this doesn't work (the {{surefire.forkNumber}} system property does not exist).
{code:xml}
<systemPropertyVariables>
<surefire.forkNumber>${surefire.forkNumber}</surefire.forkNumber>
</systemPropertyVariables>
{code}
But this does:
{code:xml}
<systemPropertyVariables>
<surefire.forkNumber>0${surefire.forkNumber}</surefire.forkNumber>
</systemPropertyVariables>
{code}
(note the leading *0*)
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)