You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by pg...@apache.org on 2008/05/15 23:19:19 UTC
svn commit: r656845 -
/maven/components/branches/maven-2.0.x/maven-core/src/main/java/org/apache/maven/cli/MavenCli.java
Author: pgier
Date: Thu May 15 14:19:19 2008
New Revision: 656845
URL: http://svn.apache.org/viewvc?rev=656845&view=rev
Log:
[MNG-3571] Allow use of ! for deactivating profiles
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=656845&r1=656844&r2=656845&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 Thu May 15 14:19:19 2008
@@ -252,7 +252,7 @@
{
String profileAction = profileTokens.nextToken().trim();
- if ( profileAction.startsWith( "-" ) )
+ if ( profileAction.startsWith( "-" ) || profileAction.startsWith( "!" ) )
{
profileManager.explicitlyDeactivate( profileAction.substring( 1 ) );
}
@@ -262,7 +262,6 @@
}
else
{
- // TODO: deprecate this eventually!
profileManager.explicitlyActivate( profileAction );
}
}