PR: MNG-2309

Profiles are activated in random order so overriding settings doesn't produce
the same results on all environments.

Use a LinkedHashMap for the profilesById to preserve profile ordering.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@408021 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Kenney Westerhof 2006-05-20 16:26:42 +00:00
parent 65b412ea17
commit c2296be700
1 changed files with 2 additions and 2 deletions
maven-project/src/main/java/org/apache/maven/profiles

View File

@ -11,9 +11,9 @@ import org.codehaus.plexus.component.repository.exception.ComponentLifecycleExce
import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Map.Entry;
@ -44,7 +44,7 @@ public class DefaultProfileManager
private List defaultIds = new ArrayList();
private Map profilesById = new HashMap();
private Map profilesById = new LinkedHashMap();
public DefaultProfileManager( PlexusContainer container )
{