Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 85074 invoked from network); 27 Oct 2009 17:08:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Oct 2009 17:08:01 -0000 Received: (qmail 44723 invoked by uid 500); 27 Oct 2009 17:08:01 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 44660 invoked by uid 500); 27 Oct 2009 17:08:01 -0000 Mailing-List: contact ivy-user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@ant.apache.org Delivered-To: mailing list ivy-user@ant.apache.org Received: (qmail 44637 invoked by uid 99); 27 Oct 2009 17:08:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Oct 2009 17:08:01 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Douglass.A.Glidden@boeing.com designates 130.76.64.48 as permitted sender) Received: from [130.76.64.48] (HELO slb-smtpout-01.boeing.com) (130.76.64.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Oct 2009 17:07:50 +0000 Received: from blv-av-01.boeing.com (blv-av-01.boeing.com [130.247.48.231]) by slb-smtpout-01.ns.cs.boeing.com (8.14.0/8.14.0/8.14.0/SMTPOUT) with ESMTP id n9RH7RaK026904 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Tue, 27 Oct 2009 10:07:28 -0700 (PDT) Received: from blv-av-01.boeing.com (localhost [127.0.0.1]) by blv-av-01.boeing.com (8.14.0/8.14.0/DOWNSTREAM_RELAY) with ESMTP id n9RH7REL010954 for ; Tue, 27 Oct 2009 10:07:27 -0700 (PDT) Received: from XCH-MWHT-01.mw.nos.boeing.com (xch-mwht-01.mw.nos.boeing.com [134.57.113.35]) by blv-av-01.boeing.com (8.14.0/8.14.0/UPSTREAM_RELAY) with ESMTP id n9RH70uU009945 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=OK) for ; Tue, 27 Oct 2009 10:07:27 -0700 (PDT) Received: from XCH-MW-11V.mw.nos.boeing.com ([134.57.119.194]) by XCH-MWHT-01.mw.nos.boeing.com ([134.57.113.35]) with mapi; Tue, 27 Oct 2009 12:07:18 -0500 From: "Glidden, Douglass A" To: "ivy-user@ant.apache.org" Date: Tue, 27 Oct 2009 12:07:17 -0500 Subject: RE: Retrieve fails to revert to earlier version Thread-Topic: Retrieve fails to revert to earlier version Thread-Index: AcpWUwMAD3/7dx12TFGc73T6YzoONQA1A7Gw Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org > Also, if for some reason the 1.0 version has a later date than the 2.0 ve= rsion, say it's a late bug fix, 2.0 wouldn't overwrite 1.0 in step 5. I can't address the bulk of your question, but I did want to mention that t= his slightly parenthetical issue sounds like a problem with your latest-str= ategy setting--it sounds like it's using the latest-time strategy instead o= f the latest-revision strategy. Doug Glidden Software Engineer The Boeing Company Douglass.A.Glidden@boeing.com -----Original Message----- From: Andreas Axelsson [mailto:Andreas.Axelsson@combination.se] Sent: Monday, October 26, 2009 11:43 To: ivy-user@ant.apache.org Subject: Retrieve fails to revert to earlier version Is it intended behavior that reverting to an older version of a dependency = requires a clean-lib before retrieve? The RetrieveEngine seem to only check= the dates of files when it determines what to copy to the lib dir after a = resolve. Example: 1. Make ivy.xml depend on some module 1.0. 2. Clean the lib dir. 3. Running retrieve populates the lib dir with the correct files. 4. Update the ivy.xml to depend on version 2.0. 5. Running retrieve populates the lib dir with the correct files. 6. Revert ivy.xml back to depend on version 1.0. 7. Run retrieve and see Ivy say that no files are required. The lib d= ir still contains the 2.0 files. Resolve will correctly log that it resolves against the specified version a= nd the resolve log and cache are updated with the correct versions at all t= imes. Also, if for some reason the 1.0 version has a later date than the 2.0 vers= ion, say it's a late bug fix, 2.0 wouldn't overwrite 1.0 in step 5. My solution at the moment is to have my ant script run a clean-lib if the i= vy.xml is newer than the lib folder, but it feels like a kludge. /axl