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

Might be impossible to have empty strings in systemPropertyVariables element

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.18
    • Component/s: Maven Surefire Plugin
    • Labels:
      None

      Description

      This stanza:

      <systemProperties>
      <property>
      <name>emptyProperty</name>
      <value></value>
      </property>
      </systemProperties>

      ...yields "" from System.getProperty("emptyProperty").

      This (supposedly better) stanza:

      <systemPropertyVariables>
      <emptyProperty></emptyProperty>
      </systemPropertyVariables>

      ...yields null from System.getProperty("emptyProperty").

      A test case is attached that demonstrates the issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tibordigana Tibor Digana
                Reporter:
                ljnelson Laird Nelson
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: