Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 50329 invoked from network); 22 Jun 2009 23:03:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Jun 2009 23:03:16 -0000 Received: (qmail 92453 invoked by uid 500); 22 Jun 2009 23:03:26 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 92374 invoked by uid 500); 22 Jun 2009 23:03: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 92364 invoked by uid 99); 22 Jun 2009 23:03:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jun 2009 23:03:26 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jun 2009 23:03:16 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MIsXP-0006Ht-V9 for user@ant.apache.org; Mon, 22 Jun 2009 16:02:55 -0700 Message-ID: <24157115.post@talk.nabble.com> Date: Mon, 22 Jun 2009 16:02:55 -0700 (PDT) From: jscripter To: user@ant.apache.org Subject: Re: factoring out commonality in sequences of tasks In-Reply-To: <20090622220522.GN2812@wladimir> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: pc88mxer@gmail.com References: <24155135.post@talk.nabble.com> <20090622210339.GK2812@wladimir> <24155611.post@talk.nabble.com> <20090622220522.GN2812@wladimir> X-Virus-Checked: Checked by ClamAV on apache.org Michael Ludwig-6 wrote: > > jscripter schrieb am 22.06.2009 um 14:16:24 (-0700): > >> > >> > ... >> > >> > >> > ... > >> I need to preserve the execution order of the tasks, so I don't think >> that would work. > > From a recent post of David Weintraub: > > | You say that B depends upon A, and C depends upon A and that A depends > | upon D, and both Ant and Make will calculate out the build order of > | your components. If you make a change (Say B now depends upon both A > | and C, Ant [...] will adjust the build without major rewriting of your > | build script. > > This suggests you could guarantee execution order by setting up the > dependency matrix accordingly. Let your main tasks depend on trg5, which > in turn depends on trg3, which in turn depends on trg1. > > Also, take a look at the manual, which has this example: > > > > > > > Suppose we want to execute target D. From its depends attribute, you > might think that first target C, then B and then A is executed. Wrong! > C depends on B, and B depends on A, so first A is executed, then B, > then C, and finally D. > > http://ant.apache.org/manual/using.html#targets > > Michael Ludwig > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > > The problem is that task3 has to come after copy-files-2 OR link-files-2 depending on which one I want to execute. So, to use an abbreviated example, I can get most of the execution order specified with the following declarations: ... ... ... ... but then how do I set up the depends for target-3? -- View this message in context: http://www.nabble.com/factoring-out-commonality-in-sequences-of-tasks-tp24155135p24157115.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org