From c851716b87063a90a78debb4a25cea51058fc227 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Wed, 1 Dec 2010 05:25:48 +0000 Subject: [PATCH] create a more predictable order in copy. PR 50297. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1040874 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/Copy.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/Copy.java b/src/main/org/apache/tools/ant/taskdefs/Copy.java index 8a65789da..cbb4728b8 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Copy.java +++ b/src/main/org/apache/tools/ant/taskdefs/Copy.java @@ -46,6 +46,7 @@ import org.apache.tools.ant.types.resources.FileResource; import org.apache.tools.ant.util.FileUtils; import org.apache.tools.ant.util.FileNameMapper; import org.apache.tools.ant.util.IdentityMapper; +import org.apache.tools.ant.util.LinkedHashtable; import org.apache.tools.ant.util.ResourceUtils; import org.apache.tools.ant.util.SourceFileScanner; import org.apache.tools.ant.util.FlatFileNameMapper; @@ -88,9 +89,9 @@ public class Copy extends Task { protected boolean includeEmpty = true; protected boolean failonerror = true; - protected Hashtable fileCopyMap = new Hashtable(); - protected Hashtable dirCopyMap = new Hashtable(); - protected Hashtable completeDirMap = new Hashtable(); + protected Hashtable fileCopyMap = new LinkedHashtable(); + protected Hashtable dirCopyMap = new LinkedHashtable(); + protected Hashtable completeDirMap = new LinkedHashtable(); protected Mapper mapperElement = null; protected FileUtils fileUtils;