You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2010/10/04 12:30:33 UTC
[jira] Closed: (MNG-4846) Profile activated accidentially
[ http://jira.codehaus.org/browse/MNG-4846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann closed MNG-4846.
----------------------------------
Resolution: Not A Bug
Assignee: Benjamin Bentmann
This works as designed, since {{"Value".equals( System.getProperty( "somePropertyName" ) ) == false}}.
> Profile activated accidentially
> -------------------------------
>
> Key: MNG-4846
> URL: http://jira.codehaus.org/browse/MNG-4846
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Profiles
> Affects Versions: 2.2.1
> Reporter: Maik Richey
> Assignee: Benjamin Bentmann
> Priority: Critical
>
> When you define a profile activated like
> {code}
> ...
> <profiles>
> <profile>
> <id>someCase</id>
> <activation>
> <activeByDefault>false</activeByDefault>
> <property>
> <name>somePropertyName</name>
> <value>!Value</value>
> </property>
> </activation>
> ...
> </profile>
> </profiles>
> ...
> {code}
> 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 message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira