Details
-
Type:
Bug
-
Status:
Reopened
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: 2.2.1
-
Fix Version/s: None
-
Component/s: Profiles
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
When you define a profile activated like
...
<profiles>
<profile>
<id>someCase</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>somePropertyName</name>
<value>!Value</value>
</property>
</activation>
...
</profile>
</profiles>
...
this profile will also be activated when no property/profile is defined on the command line. I expected that profile beeing activated only when you supply -DsomePropertyName=NotTheValue.
This works as designed, since "Value".equals( System.getProperty( "somePropertyName" ) ) == false when somePropertyName has not been specified.