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:
Paul Gier 2008-05-15 21:21:31 +00:00
parent 07a035b146
commit 9f84e95bab
1 changed files with 1 additions and 10 deletions

View File

@ -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 );
}
}