Browse Source

explicitly check whether destFile exists in <copy file="..."/>

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273444 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 23 years ago
parent
commit
a444dadc1c
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/main/org/apache/tools/ant/taskdefs/Copy.java

+ 1
- 0
src/main/org/apache/tools/ant/taskdefs/Copy.java View File

@@ -329,6 +329,7 @@ public class Copy extends Task {
}

if (forceOverwrite ||
!destFile.exists() ||
(file.lastModified() > destFile.lastModified())) {
fileCopyMap.put(file.getAbsolutePath(),
destFile.getAbsolutePath());


Loading…
Cancel
Save