You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2010/12/01 06:25:48 UTC

svn commit: r1040874 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Copy.java

Author: bodewig
Date: Wed Dec  1 05:25:48 2010
New Revision: 1040874

URL: http://svn.apache.org/viewvc?rev=1040874&view=rev
Log:
create a more predictable order in copy.  PR 50297.

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Copy.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Copy.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Copy.java?rev=1040874&r1=1040873&r2=1040874&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Copy.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Copy.java Wed Dec  1 05:25:48 2010
@@ -46,6 +46,7 @@ import org.apache.tools.ant.types.resour
 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;