You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tibor Digana (JIRA)" <ji...@codehaus.org> on 2015/01/02 15:36:10 UTC

[jira] (SUREFIRE-1068) forkNumber in systemPropertyVariables requires prefix

    [ https://jira.codehaus.org/browse/SUREFIRE-1068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=354969#comment-354969 ] 

Tibor Digana edited comment on SUREFIRE-1068 at 1/2/15 8:35 AM:
----------------------------------------------------------------

Meanwhile this may work as well
{code}<surefire.forkNumber>\${surefire.forkNumber}</surefire.forkNumber>{code}


was (Author: tibor17):
Meanwhile this may work as well
<surefire.forkNumber>\${surefire.forkNumber}</surefire.forkNumber>

> 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
>            Assignee: Tibor Digana
>            Priority: Minor
>
> The {{$\{surefire.forkNumber\}}} placeholder cannot be used alone in a {{systemPropertyVariable}}.  The workaround is to prefix the value.
> For example, this doesn't work (the {{surefire.forkNumber}} system property does not exist when running the test).
> {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)