Author: jdcasey Date: Wed Sep 10 14:26:27 2008 New Revision: 693994 URL: http://svn.apache.org/viewvc?rev=693994&view=rev Log: re-enabling '\!' for profile deactivation.
Modified: maven/components/branches/maven-2.0.x/maven-core/src/main/java/org/apache/maven/cli/MavenCli.java Modified: maven/components/branches/maven-2.0.x/maven-core/src/main/java/org/apache/maven/cli/MavenCli.java URL: http://svn.apache.org/viewvc/maven/components/branches/maven-2.0.x/maven-core/src/main/java/org/apache/maven/cli/MavenCli.java?rev=693994&r1=693993&r2=693994&view=diff ============================================================================== --- maven/components/branches/maven-2.0.x/maven-core/src/main/java/org/apache/maven/cli/MavenCli.java (original) +++ maven/components/branches/maven-2.0.x/maven-core/src/main/java/org/apache/maven/cli/MavenCli.java Wed Sep 10 14:26:27 2008 @@ -251,7 +251,7 @@ { String profileAction = profileTokens.nextToken().trim(); - if ( profileAction.startsWith( "-" ) ) + if ( profileAction.startsWith( "-" ) || profileAction.startsWith( "!" ) ) { profileManager.explicitlyDeactivate( profileAction.substring( 1 ) ); } @@ -261,7 +261,6 @@ } else { - // TODO: deprecate this eventually! profileManager.explicitlyActivate( profileAction ); } }