Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 46808 invoked from network); 4 Mar 2010 08:34:45 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Mar 2010 08:34:45 -0000 Received: (qmail 36383 invoked by uid 500); 4 Mar 2010 08:34:35 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 36360 invoked by uid 500); 4 Mar 2010 08:34:35 -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 36352 invoked by uid 99); 4 Mar 2010 08:34:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Mar 2010 08:34:35 +0000 X-ASF-Spam-Status: No, hits=-1.8 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of andreas.axelsson@combination.se designates 85.158.136.83 as permitted sender) Received: from [85.158.136.83] (HELO mail36.messagelabs.com) (85.158.136.83) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Mar 2010 08:34:27 +0000 X-VirusChecked: Checked X-Env-Sender: andreas.axelsson@combination.se X-Msg-Ref: server-13.tower-36.messagelabs.com!1267691644!33904403!1 X-StarScan-Version: 6.2.4; banners=-,-,- X-Originating-IP: [82.96.59.171] Received: (qmail 31812 invoked from network); 4 Mar 2010 08:34:04 -0000 Received: from andromeda.combination.se (HELO andromeda.combination.se) (82.96.59.171) by server-13.tower-36.messagelabs.com with RC4-SHA encrypted SMTP; 4 Mar 2010 08:34:04 -0000 Received: from andromeda.combination.se ([172.16.31.4]) by andromeda.combination.se ([172.16.31.4]) with mapi; Thu, 4 Mar 2010 09:34:04 +0100 From: Andreas Axelsson To: "ivy-user@ant.apache.org" Date: Thu, 4 Mar 2010 09:34:02 +0100 Subject: Partial transient resolve? Thread-Topic: Partial transient resolve? Thread-Index: Acq7dXGcVEv0IJ0wT16mVjWJnvIyxQ== Message-ID: Accept-Language: en-US, sv-SE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, sv-SE Content-Type: multipart/alternative; boundary="_000_DF9F001DFBED16468C103F3B506CA182FBB3574532andromedacomb_" MIME-Version: 1.0 --_000_DF9F001DFBED16468C103F3B506CA182FBB3574532andromedacomb_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I've got some modules which are only required during development and I woul= d like to mark them as such so that they are not pulled in as transient dep= endencies even if a project asks for them. Example: A depends on B, always B depends on C, always B depends on D, but only during development Running retrieve on A with transient dependencies enabled, I would like to = get B and C, but not D. What would be the approach to use? All my modules have the same configs available, build, dev and runtime. Bui= ld is effectively the same as runtime, but the resolve chain is "build->dev= (*);dev->runtime(*);runtime->runtime(*)" so that a module is built using th= e "build" config, making it resolve it's dependencies in the "dev" config a= nd transient dependencies in the "runtime" config. I think what I want is for A to look at the transient flag of B's dependenc= ies and ignore them if it's false, even if it's true for A itself. Right no= w it only looks at the flag in the top level Ivy config, which makes it imp= ossible to selectively ignore D but still get C. Or at least that's what my= tests are indicating. A real life example might be: A and B depends on different versions of a testing framework during develop= ment. If transient dependencies are resolved, B might override the version = A requires. But still, B might also require C, that I want to resolve, so I= cannot completely turn off transient dependencies and I don't want A to ha= ve to know about C. Thanks for any insight. /axl --_000_DF9F001DFBED16468C103F3B506CA182FBB3574532andromedacomb_--