Profiles should be activated if any of the activators return true.

Issue id: MNG-3106


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@656827 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Paul Gier 2008-05-15 20:42:27 +00:00
parent e4602cb85a
commit 07a035b146
1 changed files with 2 additions and 5 deletions
maven-project/src/main/java/org/apache/maven/profiles

View File

@ -293,14 +293,11 @@ public class DefaultProfileManager
if ( activator.canDetermineActivation( profile, context ) ) if ( activator.canDetermineActivation( profile, context ) )
{ {
boolean result = activator.isActive( profile, context ); if ( activator.isActive( profile, context ) )
if ( result )
{ {
container.getLogger().debug( "Profile: " + profile.getId() + " is active. (source: " + profile.getSource() + ")" ); container.getLogger().debug( "Profile: " + profile.getId() + " is active. (source: " + profile.getSource() + ")" );
return true;
} }
return result;
} }
} }