Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 92188 invoked from network); 28 Aug 2006 21:52:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Aug 2006 21:52:45 -0000 Received: (qmail 26103 invoked by uid 500); 28 Aug 2006 21:52:41 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 26061 invoked by uid 500); 28 Aug 2006 21:52:40 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 26050 invoked by uid 99); 28 Aug 2006 21:52:40 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Aug 2006 14:52:40 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [12.20.127.122] (HELO smtp.cardhealth.com) (12.20.127.122) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Aug 2006 14:52:29 -0700 Received: from unknown (HELO DUBCONN04.cahapps.net) ([143.98.158.204]) by smtp.cardhealth.com with ESMTP; 28 Aug 2006 17:52:08 -0400 X-IronPort-AV: i="4.08,177,1154923200"; d="scan'208"; a="164700741:sNHT33693044" Received: from SANCONN01.cahapps.net ([143.98.112.192]) by DUBCONN04.cahapps.net with Microsoft SMTPSVC(5.0.2195.6713); Mon, 28 Aug 2006 17:54:51 -0400 Received: from sanexch02.cahapps.net ([143.98.112.164]) by SANCONN01.cahapps.net with Microsoft SMTPSVC(5.0.2195.6713); Mon, 28 Aug 2006 14:53:06 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: Sharing inter-project dependencies Date: Mon, 28 Aug 2006 14:53:06 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Sharing inter-project dependencies Thread-Index: AcbK5E9aEGoCqrMkRUeNDnijVaQ29gAByi5Q From: "Nau, Michael" To: "Ant Users List" X-OriginalArrivalTime: 28 Aug 2006 21:53:06.0642 (UTC) FILETIME=[58230320:01C6CAEC] X-TM-AS-Product-Ver: SMEX-7.0.0.1499-3.5.1048-14657.000 X-TM-AS-Result: No--38.840300-4.000000-2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N =20 Thanks for the response Antoine... My example was a bit simplistic... In this case both componentA and componentB are part of a logical project and will be versioned together. So in this case I would like to compile them both in one step. Is there a best-practice associated with something like this (I haven't been able to find one)? -Mike -----Original Message----- From: Antoine Levy-Lambert [mailto:antoine@gmx.de]=20 Sent: Monday, August 28, 2006 1:54 PM To: Ant Users List Subject: Re: Sharing inter-project dependencies Hello Michael, one possibility to build the components independently is to use a repository. So componentB would just pull the jar of componentA from the repository, and you do not make spaghetti programming between the build files of componentA and componentB. This is my preferred approach. How you build your repository and which tools you use for that, there are several possibilities including ivy, dpml, the maven 2 ant tasks and a maven 2 like repository. AnthillPro 3 will also ship with its own repository solution. Regards, Antoine -------- Original-Nachricht -------- Datum: Mon, 28 Aug 2006 12:14:22 -0700 Von: "Nau, Michael" An: user@ant.apache.org Betreff: Sharing inter-project dependencies > I have a project with two java components: componentA and componentB. > ComponentB had a compile-time dependency on componentA. >=20 > I've read many posts\articles on how to setup a master build script to > manage the build process for both components. So far so good. But when > I get to the point where I need to setup the compile classpath for=20 > componentB... I stumble on how to reference componentA. Two options are: >=20 > 1. Setup ComponentB's build script reference the=20 > componentA/build/class dir. > Advantage: Straightforward > Disadvantage: componentB has internal knowledge of componentA's=20 > project's layout | componentB can not be build independently >=20 > 2. Have the master build script copy componentA.jar into the=20 > componentB/lib or root/lib and add the path to componentB's compile=20 > classpath. > Advantage: componentB has no knowledge of componentA's project layout > Disadvantage: componentB can not be build independently >=20 > How are other handling this? >=20 > -Mike >=20 > _________________________________________________ >=20 > This message is for the designated recipient only and may contain=20 > privileged, proprietary, or otherwise private information. If you have > received it in error, please notify the sender immediately and delete=20 > the original. Any other use of the email by you is prohibited. >=20 > Dansk - Deutsch - Espanol - Francais - Italiano - Japanese -=20 > Nederlands - Norsk - Portuguese - Svenska:=20 > www.cardinalhealth.com/legal/email >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional > commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org _________________________________________________ This message is for the designated recipient only and may contain privilege= d, proprietary, or otherwise private information. If you have received it i= n error, please notify the sender immediately and delete the original. Any = other use of the email by you is prohibited. Dansk - Deutsch - Espanol - Francais - Italiano - Japanese - Nederlands - N= orsk - Portuguese - Svenska: www.cardinalhealth.com/legal/email --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org