From ivy-user-return-5606-apmail-ant-ivy-user-archive=ant.apache.org@ant.apache.org Wed Jul 22 11:51:44 2009 Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 4566 invoked from network); 22 Jul 2009 11:51:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Jul 2009 11:51:43 -0000 Received: (qmail 94337 invoked by uid 500); 22 Jul 2009 11:52:48 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 94310 invoked by uid 500); 22 Jul 2009 11:52:48 -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 94300 invoked by uid 99); 22 Jul 2009 11:52:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jul 2009 11:52:48 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.220.219] (HELO mail-fx0-f219.google.com) (209.85.220.219) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jul 2009 11:52:40 +0000 Received: by fxm19 with SMTP id 19so123905fxm.28 for ; Wed, 22 Jul 2009 04:52:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.239.175.146 with SMTP id n18mr90331hbf.16.1248263537880; Wed, 22 Jul 2009 04:52:17 -0700 (PDT) In-Reply-To: <833279.23874.qm@web50007.mail.re2.yahoo.com> References: <833279.23874.qm@web50007.mail.re2.yahoo.com> Date: Wed, 22 Jul 2009 12:52:17 +0100 Message-ID: <34458dc50907220452o49c9bb21n3dbc40361a452c37@mail.gmail.com> Subject: Re: Possible to perform a dependency subtraction? From: Gareth Western To: ivy-user@ant.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Chris, I've recently done this for our webapps, with almost exactly the same configurations as you. All you need to do is distinguish between the two confs in your list of dependencies. For example: Module A is a jar (two configurations: jar and runtime) and has the following dependencies: d= efault"/> d= efault"/> Module B is a webapp (two configurations: web and runtime) and has a dependency on A: jar;runtime->runtime" /> Now Module B's "web" configuration WILL NOT bring the ojdbc dependency, but WILL bring the cewolf one. Does that help? On Wed, Jul 22, 2009 at 4:20 AM, Chris Nokes wrote: > Here's the confs for a module I depend on: > =A0=A0=A0 runtime > =A0=A0=A0 web extends runtime > > "runtime" represents the jars to be added to the EAR. > "web"=A0represents the compile classpath for the module.=A0 Web must exte= nd runtime because I want the jar set of runtime and web to be binary compa= tible and resolve conflicts. > > I would like to do the following in my target module: > webPackaging->web,!runtime > > > "webPackaging" represents the jars to be added to the WAR.=A0 !runtime me= ans do not add any jars from the runtime conf. > > Is there a way to do this with Ivy? > > Thanks, > Chris Nokes > > > >