mirror of https://github.com/apache/maven.git
Allow use of ! to deactivate a profile. Remove use of E: and D: for enabling and disabling.
Issue id: MNG-3571 git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@656846 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
07a035b146
commit
9f84e95bab
|
@ -157,25 +157,16 @@ public final class CLIRequestUtils
|
|||
{
|
||||
String profileAction = profileTokens.nextToken().trim();
|
||||
|
||||
if ( profileAction.startsWith( "-" ) )
|
||||
if ( profileAction.startsWith( "-" ) || profileAction.startsWith( "!" ) )
|
||||
{
|
||||
inactiveProfiles.add( profileAction.substring( 1 ) );
|
||||
}
|
||||
else if ( profileAction.startsWith( "D:" ) )
|
||||
{
|
||||
inactiveProfiles.add( profileAction.substring( 2 ) );
|
||||
}
|
||||
else if ( profileAction.startsWith( "+" ) )
|
||||
{
|
||||
activeProfiles.add( profileAction.substring( 1 ) );
|
||||
}
|
||||
else if ( profileAction.startsWith( "E:" ) )
|
||||
{
|
||||
activeProfiles.add( profileAction.substring( 2 ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
// TODO: deprecate this eventually!
|
||||
activeProfiles.add( profileAction );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue