Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 76425 invoked from network); 29 May 2008 02:30:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 May 2008 02:30:49 -0000 Received: (qmail 35749 invoked by uid 500); 29 May 2008 02:30:51 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 35701 invoked by uid 500); 29 May 2008 02:30:50 -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 35690 invoked by uid 99); 29 May 2008 02:30:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 May 2008 19:30:50 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 May 2008 02:29:53 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1K1XuB-00052R-8k for dev@ant.apache.org; Wed, 28 May 2008 19:30:15 -0700 Message-ID: <17526130.post@talk.nabble.com> Date: Wed, 28 May 2008 19:30:15 -0700 (PDT) From: Claudio Miranda To: dev@ant.apache.org Subject: [Ivy] How to add a new option to ivy settings MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: claudio@claudius.com.br X-Virus-Checked: Checked by ClamAV on apache.org I am doing some testing with Ivy and have implemented a small modification, to allow the downloaded resource to have the same date timestamp as the file in remote repo. It is a requirement from the customer. At org.apache.ivy.util.url.BasicURLHandler.download(URL src, File dest, CopyProgressListener l) I added dest.setLastModified(srcConn.getLastModified()); How is it possible to add an attribute "timestamp" to the "dependencies" xml tag ? See below, a sample: It can have 2 values "remote" or "current", whereas "remote" set the last modified attribute, as the remote file is. The "current" means the current Ivy behavior. How can I read the timestamp value, at BasicURLHandler class ? This is the thread, with more explanation about this requested behavior http://www.nabble.com/How-to-download-files-from-ivyrepo-with-the-same-last-modified-date---td17515745.html I plan to submit it as an enhancement to the Ivy issue tracking. Thanks Claudio Miranda ----- Claudio Miranda http://weblogs.java.net/blog/claudio http://www.claudius.com.br/blog -- View this message in context: http://www.nabble.com/-Ivy--How-to-add-a-new-option-to-ivy-settings-tp17526130p17526130.html Sent from the Ant - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org