ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r419104 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Get.java
Date Tue, 04 Jul 2006 21:11:28 GMT
Author: stevel
Date: Tue Jul  4 14:11:28 2006
New Revision: 419104

URL: http://svn.apache.org/viewvc?rev=419104&view=rev
Log:
bug 35607 ; Ant Get task downloads unmodified files  when useTimestamp=true

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

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Get.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Get.java?rev=419104&r1=419103&r2=419104&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Get.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Get.java Tue Jul  4 14:11:28 2006
@@ -163,7 +163,7 @@
             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



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message