Maven 2 & 3

OS name is only detected if lower cased

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0.4
  • Fix Version/s: 2.0.6
  • Component/s: Profiles
  • Labels:
    None
  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

The following profile does not activate on MacosX:

<profile>
<id>activate-mac</id>
<activation>
<os>
<name>Mac OS X</name>
</os>
</activation>
</profile>

"Mac OS X" matches the value returned when querying ${os.name}.

If you lowercase the name, the profile is activated:

<profile>
<id>activate-mac</id>
<activation>
<os>
<name>mac os x</name>
</os>
</activation>
</profile>

This is counter intuitive, as one would expect the exact cut and pasted (capitalised) ${os.name} value to work as an OS name in a profile.

Issue Links

Activity

Hide
Vincent Siveton added a comment -

Already fixed by PLXUTILS-3 for Maven >= 2.0.6

Show
Vincent Siveton added a comment - Already fixed by PLXUTILS-3 for Maven >= 2.0.6

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: