Browse Source

allow file names to be 'fixed in case' on Windows. PR 41948

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@954785 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 15 years ago
parent
commit
3209b4182f
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/Move.java
  2. +1
    -1
      src/main/org/apache/tools/ant/util/FileUtils.java

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

@@ -349,7 +349,7 @@ public class Move extends Copy {
} else if (destFile.isFile()) {
sourceFile = getFileUtils().normalize(sourceFile.getAbsolutePath()).getCanonicalFile();
destFile = getFileUtils().normalize(destFile.getAbsolutePath());
if (destFile.equals(sourceFile)) {
if (destFile.getAbsolutePath().equals(sourceFile.getAbsolutePath())) {
//no point in renaming a file to its own canonical version...
log("Rename of " + sourceFile + " to " + destFile
+ " is a no-op.", Project.MSG_VERBOSE);


+ 1
- 1
src/main/org/apache/tools/ant/util/FileUtils.java View File

@@ -1273,7 +1273,7 @@ public class FileUtils {
System.err.println("Cannot rename nonexistent file " + from);
return;
}
if (from.equals(to)) {
if (from.getAbsolutePath().equals(to.getAbsolutePath())) {
System.err.println("Rename of " + from + " to " + to + " is a no-op.");
return;
}


Loading…
Cancel
Save