Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 14366 invoked from network); 13 Mar 2006 18:25:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Mar 2006 18:25:56 -0000 Received: (qmail 54201 invoked by uid 500); 13 Mar 2006 18:25:52 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 54159 invoked by uid 500); 13 Mar 2006 18:25:51 -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 54148 invoked by uid 99); 13 Mar 2006 18:25:51 -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 10:25:51 -0800 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=MAILTO_TO_SPAM_ADDR X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [144.140.83.195] (HELO omta05ps.mx.bigpond.com) (144.140.83.195) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Mar 2006 10:25:50 -0800 Received: from julia ([139.168.209.209]) by omta05ps.mx.bigpond.com with ESMTP id <20060313182523.YKZL14751.omta05ps.mx.bigpond.com@julia> for ; Mon, 13 Mar 2006 18:25:23 +0000 From: "Stephen McConnell" To: "'Ant Users List'" Subject: RE: Compile Sources Specific to Its Subproject But Not Sources They Depend On Date: Tue, 14 Mar 2006 04:55:17 +1030 Message-ID: <001801c646cb$7bbd3260$0201a8c0@julia> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <20060312062231.74537.qmail@web51407.mail.yahoo.com> Thread-Index: AcZFnXFRISXo4t5xQK6paF2XaXQVYQBJ4uTQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > -----Original Message----- > From: TH Lim [mailto:sshark97@yahoo.com] > Sent: Sunday, 12 March 2006 4:53 PM > To: user@ant.apache.org > Subject: Compile Sources Specific to Its Subproject But Not > Sources They Depend On > > 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. This does not sound right. Ant's invocation of the javac task will place classes into the destination directory that you specify. From what your saying here it sounds like your build file is declaring that "ProjectA/build" is the destination directory for both projects. Concerning the circular dependencies - you need factor out what is common between the two projects and push this into a new separate project that is consumed by A and B. Cheers, Steve. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org