Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 37161 invoked from network); 2 May 2002 07:55:20 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 2 May 2002 07:55:20 -0000 Received: (qmail 939 invoked by uid 97); 2 May 2002 07:55:31 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@nagoya.betaversion.org Received: (qmail 855 invoked by alias); 2 May 2002 07:55:30 -0000 Delivered-To: jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 841 invoked by uid 97); 2 May 2002 07:55:30 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 829 invoked by uid 98); 2 May 2002 07:55:29 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) X-Authentication-Warning: bodewig.bost.de: bodewig set sender to bodewig@bost.de using -f To: ant-dev@jakarta.apache.org Subject: Re: Possible bug with , and depends References: <5.1.0.14.2.20020501232817.03bd1778@pop-server.socal.rr.com> From: Stefan Bodewig Date: 02 May 2002 09:55:24 +0200 Message-ID: Lines: 50 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Civil Service) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Thu, 02 May 2002, Chad Loder wrote: > At Wednesday 5/1/2002 10:28 PM -0700, you wrote: >>actually, if your target was >> >> >> >> >> >> >> >> >>with no parallel, I would expect junut to get called as a >>dependency, as per statement (2) > > It does get called -- only ONCE, as per statement (1). That's > the desired behavior. Have you tried it? It executes junit four times for me. Ant will execute each target at most once "per project" and each or is a new project. I think Ant would be doing what you expect if your removed the depends clauses from your targets. > That's much more complex than what I want. All I want is for a set > of independent tasks to be executed in parallel, while their mutual > dependencies (recursively) are executed at most once. That's much more complex than what Ant does 8-) There is no internal magic bound to parallel that would enable it to perform dependency checks of any kind. > I'm a rather handy Java programmer myself and I don't mind writing a > taskdef for "transitive closure" parallelism. However, I'm rapidly > getting the impression that this style of build is contrary to the > spirit of ant for some reason, and I'd obviously like whatever I > design to be acceptable to the ant maintainers. It's not so much against the spirit of Ant, but it probably won't work for you at all. One of the main problems is . Unlike make, Ant will compile all sources at once and this will lead to race conditions - and even worse, Sun's implementation of javac will go a long way to make it harder for you to use several javac invocations inside the JVM in parallel. Stefan -- To unsubscribe, e-mail: For additional commands, e-mail: