Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 47401 invoked from network); 10 Nov 2008 15:13:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Nov 2008 15:13:55 -0000 Received: (qmail 61391 invoked by uid 500); 10 Nov 2008 15:14:02 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 61353 invoked by uid 500); 10 Nov 2008 15:14: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 61342 invoked by uid 99); 10 Nov 2008 15:14:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Nov 2008 07:14:01 -0800 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 (athena.apache.org: domain of mgitman@gmail.com designates 209.85.128.184 as permitted sender) Received: from [209.85.128.184] (HELO fk-out-0910.google.com) (209.85.128.184) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Nov 2008 15:12:43 +0000 Received: by fk-out-0910.google.com with SMTP id 19so3277388fkr.12 for ; Mon, 10 Nov 2008 07:13:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=Ya8OtsS8zrL2LY230+sNa1uvNckw/wjEVsL5CiVL454=; b=dc0bec4LKUEWeeU9CZQ10lCEjCbm1lpK6UeKwY6U/m+550y8XMfnccSgmd81lcg1Dz 3tWnP4gvzOFp58bBsRmAA4hO9eVOO4NQafbbZY2ngHCosflR2jSehj2co/q1VIYVUysY EbOTsP4YRe2GRbrZCpG+2r6+XiI6+qbrkTNck= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=iX4gdEzdhoA4hjoi8F+2f0jm/pdEN23zl7mkNstM9VpGMqdoA2NLyXbzO/9mTSYiWV Ukgb1yhg2y9mvD660lDkyIc6jTY8TQE7UjeSrYo75FD1AdFuE3iiRGsBbCP24MVwv3ea /Hrg4CQ4EsoU5X548BpZyjI13ZztRhIFoboAc= Received: by 10.187.239.18 with SMTP id q18mr1858792far.16.1226329995527; Mon, 10 Nov 2008 07:13:15 -0800 (PST) Received: by 10.187.164.14 with HTTP; Mon, 10 Nov 2008 07:13:15 -0800 (PST) Message-ID: <7916a6a60811100713s5960fde0mfbda637b05b41dfe@mail.gmail.com> Date: Mon, 10 Nov 2008 07:13:15 -0800 From: "Mitch Gitman" To: ivy-user@ant.apache.org Subject: Re: problems with partial dependency and eviction In-Reply-To: <34721A41A7BCF54ABC3B116219A8C1C204F8608DA5@NP1EXCH012.corp.halliburton.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_62982_22811317.1226329995521" References: <34721A41A7BCF54ABC3B116219A8C1C204F8608DA5@NP1EXCH012.corp.halliburton.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_62982_22811317.1226329995521 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Shawn, forgive me for steering you in another direction. Rather than mess around with dependency/include--if I control the dependency itself--I would find it simpler, both practically and conceptually, to create two different configurations of the dependency: - One whose publication is part1.jar, in your case. Call this partial. - Another whose publication is everything else. Call this everything. Then your A project can specify something like conf="default->partial" in its dependency element. Setting aside the possible bug you describe, what's confusing about specifying dependency/include is that it implies that the dependent project is messing around inside the configuration for the dependency project. The consumer component is consuming implementation in addition to interface. On Mon, Nov 10, 2008 at 1:53 AM, Shawn Castrianni < Shawn.Castrianni@halliburton.com> wrote: > I am using my own build of ivy at revision 675585 and am having problems > when I use the sub tag for a dependency so that I can restrict the > dependency to just part of the module. > > For example, A->B (part1.jar only). So I use an tag to only > include the part1.jar in the dependency definition. Now let's say I have C > which depends on A and all of B. Since A is only going to grab part1.jar > only, I have to make C be directly dependent on B so that I it can get all > of B. This makes sense. However, IVY (in its resolve to only get part1.jar > of B via A) is preventing the rest of B from coming through when resolving > C->B. It evicts the rest of B. > > This seems like a bug to me since I would think direct dependencies should > overrule indirect dependencies. Is this a bug and will the latest release > candidate of IVY solve this problem? Or am I doing something wrong? Please > help. > > --- > Shawn Castrianni > > ---------------------------------------------------------------------- > This e-mail, including any attached files, may contain confidential and > privileged information for the sole use of the intended recipient. Any > review, use, distribution, or disclosure by others is strictly prohibited. > If you are not the intended recipient (or authorized to receive information > for the intended recipient), please contact the sender by reply e-mail and > delete all copies of this message. ------=_Part_62982_22811317.1226329995521--