Browse Source

bugzilla report 37386: <checksum> with file and todir fails

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@447165 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 19 years ago
parent
commit
507f91bcc3
2 changed files with 6 additions and 0 deletions
  1. +2
    -0
      WHATSNEW
  2. +4
    -0
      src/main/org/apache/tools/ant/taskdefs/Checksum.java

+ 2
- 0
WHATSNEW View File

@@ -10,6 +10,8 @@ Changes that could break older environments:
Fixed bugs:
-----------

* <checksum> with file and todir option failed. Bugzilla report 37386.

Other changes:
--------------



+ 4
- 0
src/main/org/apache/tools/ant/taskdefs/Checksum.java View File

@@ -398,6 +398,10 @@ public class Checksum extends MatchingTask implements Condition {
}
}
if (file != null) {
if (totalproperty != null || todir != null) {
relativeFilePaths.put(
file, file.getName().replace(File.separatorChar, '/'));
}
addToIncludeFileMap(file);
}
return generateChecksums();


Loading…
Cancel
Save