Return-Path: Delivered-To: apmail-incubator-ivy-user-archive@locus.apache.org Received: (qmail 89067 invoked from network); 21 May 2007 20:53:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 May 2007 20:53:21 -0000 Received: (qmail 40332 invoked by uid 500); 21 May 2007 20:53:27 -0000 Delivered-To: apmail-incubator-ivy-user-archive@incubator.apache.org Received: (qmail 40315 invoked by uid 500); 21 May 2007 20:53:27 -0000 Mailing-List: contact ivy-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@incubator.apache.org Delivered-To: mailing list ivy-user@incubator.apache.org Received: (qmail 40306 invoked by uid 99); 21 May 2007 20:53:27 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2007 13:53:27 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of xavier.hanin@gmail.com designates 64.233.184.238 as permitted sender) Received: from [64.233.184.238] (HELO wr-out-0506.google.com) (64.233.184.238) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2007 13:53:18 -0700 Received: by wr-out-0506.google.com with SMTP id i31so1036956wra for ; Mon, 21 May 2007 13:52:58 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=DmDTBTMMBWaPLVI+PpCGTwUy/NDKV6dFC/GwUa+CIuMv4CpAbYEm1sqhEyd3kIwFNlIw3A4C5mk5bDhxRvQJJoD/0Yy9xiJLNO7hefBrTGBjfXAFnWp7m+5cMETqGPpe2Wxf1XjAlYQQte9tHf3wvJXU95mydW6fCgkhlFD4FRQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=RgvDJLvEqesQTWwSLjH7iAC24FlpRHZZ/hGnLMmg5gbdCTZf6KsG0/Z2Ee6mm/zwoIcLrbSJef4EIt04FRKY0x/4e4DBplMZ5ggRikoFrx4QZata47v/tzx7aN6ZuFWaN3V9SdmsfOAxuafogyX21EeQ40GBar8LURFCu44PZ/o= Received: by 10.114.195.19 with SMTP id s19mr2913076waf.1179780777137; Mon, 21 May 2007 13:52:57 -0700 (PDT) Received: by 10.114.124.8 with HTTP; Mon, 21 May 2007 13:52:56 -0700 (PDT) Message-ID: <635a05060705211352j49d9fb39ka591a6b8428081ce@mail.gmail.com> Date: Mon, 21 May 2007 22:52:56 +0200 From: "Xavier Hanin" To: ivy-user@incubator.apache.org Subject: Re: post resolve tasks and "keep" attribute In-Reply-To: <478031.33962.qm@web82808.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_87294_12485528.1179780776780" References: <788568.64794.qm@web82809.mail.mud.yahoo.com> <478031.33962.qm@web82808.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_87294_12485528.1179780776780 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 5/21/07, Scott Goldstein wrote: > > I've solved my problem by changing the order of execution. > > However, I'm still curious about the "keep" property, as I imagine this > might come up again. Any info? In 2.0 version we have introduced a scope which makes the keep attribute obsolete. See IVY-366 [1] for details. However, we try to keep Ivy backward compatible, and it seems that we missed this compatibility break. Could you open an issue in JIRA about this? Xavier [1] https://issues.apache.org/jira/browse/IVY-366 Scott > > Scott Goldstein wrote: > During my build, I'm trying to run the ant "taskdef" task. As part of > this task, I need to provide a classpath for the task, which I do using the > "ivy:cachepath" task and an appropriate ivy file. This works, but the > resolve necessary to achieve this blows away the resolve data from a > previous execution of resolve, which breaks the build later on. > > So, what I need to do it perform a resolve within a particular scope and > return the resolve data to its previous state. > > I looked at the docs on incubator.apache.org and there is some reference > to the "keep" attribute both post resolve tasks. This appears to be what I > need. However, when I try using it with 2.0 alpha, I get an error that the > attribute does not exist. > > What's the status of this attribute? If there another way to achieve what > I need? Is it just a matter of saving and restoring the resolve properties, > ivy.organisation, ivy.module, ivy.revision, and > ivy.resolved.configurations? > > Thanks. > > Scott > > -- Xavier Hanin - Independent Java Consultant Manage your dependencies with Ivy! http://incubator.apache.org/ivy/ ------=_Part_87294_12485528.1179780776780--