jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven Surefire
  • SUREFIRE-649

Might be impossible to have empty strings in systemPropertyVariables element

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 2.6
  • Fix Version/s: Backlog
  • Component/s: Maven Surefire Plugin
  • Labels:
    None
  • Complexity:
    Intermediate
  • Testcase included:
    yes

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.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. GZip Archive
    surefireEmptyStringIssue.tar.gz
    05/Oct/10 2:03 PM
    2 kB
    Laird Nelson

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Laird Nelson added a comment - 05/Oct/10 2:06 PM

I neglected to set the priority down from major, as the workaround is simply to continue to use the deprecated systemProperties stanza. My apologies.

Show
Laird Nelson added a comment - 05/Oct/10 2:06 PM I neglected to set the priority down from major, as the workaround is simply to continue to use the deprecated systemProperties stanza. My apologies.
Hide
Permalink
Stefan Birkner added a comment - 14/Jan/11 2:32 PM

The Bug happens inside of org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.fromExpression( PlexusConfiguration configuration, ExpressionEvaluator expressionEvaluator ). Within this method the empty string is converted to null.

Show
Stefan Birkner added a comment - 14/Jan/11 2:32 PM The Bug happens inside of org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.fromExpression( PlexusConfiguration configuration, ExpressionEvaluator expressionEvaluator ). Within this method the empty string is converted to null.

People

  • Assignee:
    Unassigned
    Reporter:
    Laird Nelson
Vote (0)
Watch (2)

Dates

  • Created:
    05/Oct/10 2:03 PM
    Updated:
    13/Dec/11 3:02 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.