mirror of https://github.com/apache/maven.git
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:
parent
706890fd2b
commit
1245ac784e
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue