From c2296be700111d244b77979c119e3225921d0c23 Mon Sep 17 00:00:00 2001 From: Kenney Westerhof Date: Sat, 20 May 2006 16:26:42 +0000 Subject: [PATCH] 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 --- .../java/org/apache/maven/profiles/DefaultProfileManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maven-project/src/main/java/org/apache/maven/profiles/DefaultProfileManager.java b/maven-project/src/main/java/org/apache/maven/profiles/DefaultProfileManager.java index 78a68a0697..8ecc47f787 100644 --- a/maven-project/src/main/java/org/apache/maven/profiles/DefaultProfileManager.java +++ b/maven-project/src/main/java/org/apache/maven/profiles/DefaultProfileManager.java @@ -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 ) {