use TreeSet to ensure project ordering is explicit (FELIX-1664)
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@820300 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/sigil/ivy/resolver/src/org/apache/felix/sigil/ivy/FindUtil.java b/sigil/ivy/resolver/src/org/apache/felix/sigil/ivy/FindUtil.java
index a0c5d01..57ee8e4 100644
--- a/sigil/ivy/resolver/src/org/apache/felix/sigil/ivy/FindUtil.java
+++ b/sigil/ivy/resolver/src/org/apache/felix/sigil/ivy/FindUtil.java
@@ -22,8 +22,8 @@
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
-import java.util.ArrayList;
import java.util.Collection;
+import java.util.TreeSet;
public class FindUtil
{
@@ -48,7 +48,7 @@
String[] patterns = regex.split("/");
- ArrayList<File> list = new ArrayList<File>();
+ TreeSet<File> list = new TreeSet<File>();
File root = new File(slash == -1 ? "." : pattern.substring(0, slash));
if (root.isDirectory())