Add support for multiple -P params on the command line.

Issue id: MNG-3268


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@652912 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Paul Gier 2008-05-02 21:04:22 +00:00
parent 706890fd2b
commit 1245ac784e
1 changed files with 23 additions and 17 deletions

View File

@ -146,9 +146,13 @@ public final class CLIRequestUtils
if ( commandLine.hasOption( CLIManager.ACTIVATE_PROFILES ) )
{
String profilesLine = commandLine.getOptionValue( CLIManager.ACTIVATE_PROFILES );
String [] profileOptionValues = commandLine.getOptionValues( CLIManager.ACTIVATE_PROFILES );
StringTokenizer profileTokens = new StringTokenizer( profilesLine, "," );
if ( profileOptionValues != null )
{
for ( int i=0; i < profileOptionValues.length; ++i )
{
StringTokenizer profileTokens = new StringTokenizer( profileOptionValues[i] , "," );
while ( profileTokens.hasMoreTokens() )
{
@ -169,6 +173,8 @@ public final class CLIRequestUtils
}
}
}
}
}
MavenTransferListener transferListener;