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

Might be impossible to have empty strings in systemPropertyVariables element

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.6
    • 2.18
    • Maven Surefire Plugin
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: