From user-return-71861-apmail-ant-user-archive=ant.apache.org@ant.apache.org Mon Aug 8 17:34:01 2011 Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E89038DBE for ; Mon, 8 Aug 2011 17:34:01 +0000 (UTC) Received: (qmail 76555 invoked by uid 500); 8 Aug 2011 17:34:01 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 76480 invoked by uid 500); 8 Aug 2011 17:34:00 -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 76472 invoked by uid 99); 8 Aug 2011 17:34:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2011 17:34:00 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [147.11.1.11] (HELO mail.windriver.com) (147.11.1.11) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2011 17:33:53 +0000 Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb [147.11.189.41]) by mail.windriver.com (8.14.3/8.14.3) with ESMTP id p78HXUoY018102 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Mon, 8 Aug 2011 10:33:31 -0700 (PDT) Received: from ALA-MBA.corp.ad.wrs.com ([169.254.1.7]) by ALA-HCB.corp.ad.wrs.com ([147.11.189.41]) with mapi id 14.01.0255.000; Mon, 8 Aug 2011 10:33:30 -0700 From: "Echlin, Robert" To: Ant Users List Subject: RE: Are multiple targets run in order, or in parallel? Thread-Topic: Are multiple targets run in order, or in parallel? Thread-Index: AcxV5C8/iL20I8WASHGOWSUwQyLmiAAQ47YAAA6PjDA= Date: Mon, 8 Aug 2011 17:33:30 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [128.224.140.203] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Hi guys, Thanks, Dominique, for the reminder about order of execution being dependen= t on dependencies. I remember that about dependencies declared in a target. I am surprised that there isn't a line in the "Running Ant" page referring = to the targets page if the same ordering information applies. Responses: No, I don't know what executors are. Unrelated: Reading the "targets" docs page just now told me of a new featur= e called "extension points", which sounds valuable. In my situation: - target 1 removes all files from the output folders - target 2 generates link catalogs for the current document set - target 3 builds the output (HTML, PDF, and Eclipse plugins) using the lin= k catalogs So at least the first one can't possibly depend on later ones directly. :-) And it doesn't depend on anything, actually. My concern is that it takes several seconds to run, so it could kill the fi= rst link catalog, (or maybe parts of it?) and I might not know. Regarding complexity of dependencies, I ran: grep " -----Original Message----- > From: Dominique Devienne [mailto:ddevienne@gmail.com] > Sent: Monday, August 08, 2011 1:03 PM > To: Ant Users List > Subject: Re: Are multiple targets run in order, or in parallel? >=20 > On Mon, Aug 8, 2011 at 10:59 AM, Echlin, Robert > wrote: > > =A0 "ant target1 target2 target3" > > Will target1 be guaranteed to be complete before target2 is run? >=20 > Yes, with two "but"s: > 1) If you use the default executor. If you don't know what an executor > is, you most likely are :) > 2) If target1 declared a dependency on target2 or target3, directly or > not, they could execute in a different order. >=20 > Note running "ant t1 t2 t3" is almost equivalent to running "ant t1", > "ant t2", "ant t3", in the sense that the dependencies of t1 are > executed before t1 itself, then the dependencies of t2 before t2, *as > if* t1 hasn't been run before (modulo properties/references set by > t1), which means that some dependent targets (e.g. init) may execute > several times (unless "protected" from multiple executions by a > property). So if target1 depends on target2, order of execution would > be target2 (from the target1 dependency), target1, target2 (from the > explicit cli invocation), target3. At least that's how I recall this > works, but you should double-check it yourself. --DD >=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