Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 95649 invoked from network); 25 Apr 2006 04:04:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Apr 2006 04:04:31 -0000 Received: (qmail 16457 invoked by uid 500); 25 Apr 2006 04:04:26 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 16421 invoked by uid 500); 25 Apr 2006 04:04:26 -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 16410 invoked by uid 99); 25 Apr 2006 04:04:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Apr 2006 21:04:26 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [217.160.128.107] (HELO www.samaflost.de) (217.160.128.107) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Apr 2006 21:04:24 -0700 Received: by www.samaflost.de (Postfix, from userid 1000) id 1B36088A426; Tue, 25 Apr 2006 06:04:03 +0200 (CEST) To: user@ant.apache.org Subject: Re: Handling Circular Dependency X-Draft-From: ("nnfolder:mail.jakarta-ant-user" 53464) References: From: Stefan Bodewig Date: Tue, 25 Apr 2006 06:04:03 +0200 In-Reply-To: (Hwa N. Shen's message of "Mon, 24 Apr 2006 08:29:31 -0500") Message-ID: <87y7xuti6k.fsf@www.samaflost.de> User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Mon, 24 Apr 2006, Hwa N. Shen wrote: > How do you handle circular dependency in Ant? In general you don't compile files one by one in ant, but all at once - so circular dependencies don't cause a problem: Where this doesn't work as good as having a target per source file (the approach you've shown) is when a change in A.java forces you to recompile B.java as well. This is where you'd use a single depend task for all files before the single javac task (or an aternative to the javac task like javamake that you can find by browsing the external tools page). Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org