Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 95492 invoked from network); 13 Mar 2006 17:49:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Mar 2006 17:49:51 -0000 Received: (qmail 2461 invoked by uid 500); 13 Mar 2006 17:49:45 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 2420 invoked by uid 500); 13 Mar 2006 17:49:45 -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 2395 invoked by uid 99); 13 Mar 2006 17:49:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Mar 2006 09:49:45 -0800 X-ASF-Spam-Status: No, hits=1.6 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_WHOIS,MAILTO_TO_SPAM_ADDR X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [206.190.38.184] (HELO web51405.mail.yahoo.com) (206.190.38.184) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 13 Mar 2006 09:49:43 -0800 Received: (qmail 31021 invoked by uid 60001); 13 Mar 2006 17:49:22 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=melFCEiY0/RXrCkIUUw0mZR9SX/1Lf1v+ti45Hks25WTch3dSEIH3abIxVlp3br+9/fIa900fmn2m3kkWne647qjDDF6C1p5ON/g6jVxvbS+OC0Wal46qUnTWB5TO7y8+O2nMIr/rkotaDYrR4uZjgye0fkoHVuKDoaQU8nyGdU= ; Message-ID: <20060313174922.31019.qmail@web51405.mail.yahoo.com> Received: from [167.156.63.253] by web51405.mail.yahoo.com via HTTP; Mon, 13 Mar 2006 09:49:22 PST Date: Mon, 13 Mar 2006 09:49:22 -0800 (PST) From: TH Lim Subject: Re: Compile Sources Specific to Its Subproject But Not Sources They Depend On To: Ant Users List In-Reply-To: <255d8d690603130854y48bfd6cdh39524c1c942a5095@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I totally agreed with you for not having circular dependencies between projects. Sometimes, you can't say much when you inherit codes from the contractors which you have no control over. Unless I bite the bullet and break all circular dependencies in the code there is nothing much I can do. Other option is to have Eclipse like compiler. I am under the impression that Eclipse uses SUN compiler because it uses the libraries i.e. tools.jar from the JDK directory. Am I wrong? --- Dominique Devienne wrote: > Hmmm, I don't know of any way to have the SUN > compiler generate the > classes the way you describe if you really have > circular dependencies > between the 2 projects. Eclipse must be using its > own compiler to do > that. > > Again, assuming you really have circular > dependencies, you can't > compile projectA and projectB independently without > having either's > src/ dir in the sourcepath, or the compiled classes > of one in the > classpath, but to have the latter you end up with a > chicken-and-egg > pb, while the former implies (with SUN's compiler) > that some of the > other project classes will be output in the first > projects build/ dir. > > I hope I am making sense to you ;-) Good luck, > > "avoid circular dependencies between projects" (tm) > --DD > > On 3/12/06, TH Lim wrote: > > Hi, > > > > I have a directory structure that looks something > like > > this > > > > -Projects/ > > -ProjectA/ > > +build/ > > +src/ > > +package1 > > -ProjectB/ > > +build/ > > +src/ > > +package2 > > > > > > I'm using Eclipse 3.x and have set each subproject > > source to be built with in each subproject build > > directory i.e. classes from ProjectA/src will be > > compiled into ProjectA/build and ProjectB/src will > be > > compiled into ProjectB/build. > > > > Some of the sources in ProjectA/src depends on > sources > > in ProjectB/src and vice versa > > > > The classes generated by Eclipse are specific to > its > > subproject i.e. in ProjectA/build I will only see > > package1 and the classes benefit it and package2 > is > > NOT generated in this subproject. The same goes > for > > ProjectB. > > > > Is there anyway I could do the same for Ant? This > is > > because Ant generates both packages in > ProjectA/build > > directory. Is there a 3rd party library that > allows me > > to do so? > > > > I'm using Ant 1.6.5. > > > > Thanks > > > > /lim/ > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > > > --------------------------------------------------------------------- > > 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 > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org