Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1068

forkNumber in systemPropertyVariables requires prefix

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.16
    • Fix Version/s: 3.0
    • Component/s: Maven Surefire Plugin
    • Labels:
      None

      Description

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

        <systemPropertyVariables>
          <surefire.forkNumber>${surefire.forkNumber}</surefire.forkNumber>
        </systemPropertyVariables>
      

      But this does:

        <systemPropertyVariables>
          <surefire.forkNumber>0${surefire.forkNumber}</surefire.forkNumber>
        </systemPropertyVariables>
      

      (note the leading 0)

        Attachments

          Activity

            People

            • Assignee:
              tibordigana Tibor Digana
              Reporter:
              ericacm Eric Pederson
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: