o Fixed profile activation

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@749354 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-03-02 16:48:07 +00:00
parent 929016ddf9
commit db03ef60f0
1 changed files with 8 additions and 2 deletions

View File

@ -193,9 +193,15 @@ public class DefaultMavenExecutionRequestPopulator
List settingsProfiles = settings.getProfiles();
List settingsActiveProfileIds = settings.getActiveProfiles();
List<String> settingsActiveProfileIds = settings.getActiveProfiles();
profileManager.getProfileActivationContext().setExplicitlyActiveProfileIds( settingsActiveProfileIds );
if ( settingsActiveProfileIds != null )
{
for ( String profileId : settingsActiveProfileIds )
{
profileManager.getProfileActivationContext().setActive( profileId );
}
}
if ( ( settingsProfiles != null ) && !settingsProfiles.isEmpty() )
{