Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 64810 invoked from network); 5 Jul 2006 12:42:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Jul 2006 12:42:07 -0000 Received: (qmail 92535 invoked by uid 500); 5 Jul 2006 12:40:39 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 87302 invoked by uid 500); 5 Jul 2006 12:40:12 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 86270 invoked by uid 500); 5 Jul 2006 12:40:06 -0000 Received: (qmail 81178 invoked by uid 99); 5 Jul 2006 12:39:37 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jul 2006 05:39:37 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jul 2006 05:39:35 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 396BF1A98A2; Tue, 4 Jul 2006 14:11:29 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r419104 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Get.java Date: Tue, 04 Jul 2006 21:11:28 -0000 To: ant-cvs@apache.org From: stevel@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060704211129.396BF1A98A2@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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