Browse Source

bug 35607 ; Ant Get task downloads unmodified files when useTimestamp=true

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@419104 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 19 years ago
parent
commit
9103590149
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/Get.java

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

@@ -163,7 +163,7 @@ public class Get extends Task {
if (httpConnection.getResponseCode()
== HttpURLConnection.HTTP_NOT_MODIFIED
|| (lastModified != 0 && hasTimestamp
&& timestamp > lastModified)) {
&& timestamp >= lastModified)) {
//not modified so no file download. just return
//instead and trace out something so the user
//doesn't think that the download happened when it


Loading…
Cancel
Save