Issue Details (XML | Word | Printable)

Key: MNG-3571
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Paul Gier
Reporter: Paul Gier
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 2 & 3

Allow use of ! when deactivating profiles

Created: 13/May/08 04:36 PM   Updated: 03/Sep/08 04:59 PM   Resolved: 15/May/08 04:22 PM
Component/s: Command Line
Affects Version/s: None
Fix Version/s: 2.0.10, 2.1.0-M1

Time Tracking:
Not Specified

Issue Links:
Related
 

Complexity: Intermediate


 Description  « Hide

The current syntax for deactivating a profile from the command line is:
mvn -P-myProfile

It would be more intuitive if the exclamation point could be used in addition to the dash.
mvn -P!myProfile



Paul Gier added a comment - 13/May/08 05:00 PM

This was suggested on the developer list here:
http://www.mail-archive.com/dev@maven.apache.org/msg74261.html


Paul Benedict added a comment - 16/May/08 11:00 AM

So which is it? MNG-3545 comments say it is plus and minus. This issue says exclamation mark.


Paul Gier added a comment - 16/May/08 11:22 AM

Currently it's both. You can use exclamation or minus to deactivate a profile.


Paul Benedict added a comment - 18/May/08 05:57 AM

Was there also a commit to update any documentation using the exclamation/plus/minus syntax?


Paul Gier added a comment - 18/May/08 09:28 PM

The site was updated with a description of the ! syntax in this commit:
http://www.nabble.com/svn-commit%3A-r656894----maven-site-trunk-src-site-apt-guides-introduction-introduction-to-profiles.apt-ts17264759.html

I'll add something about the +/- syntax also.


John Casey added a comment - 03/Sep/08 04:59 PM

Adding fix-for for both 2.0.10 and 2.1.0-M1, since 2.1.0-M1 will actually be released first and may not incorporate all of the eventual issue fixes released in 2.0.10.