Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 50709 invoked from network); 18 Jul 2000 15:53:54 -0000 Received: from unknown (HELO diginetserv01.diveo.com.ar) (200.51.67.51) by locus.apache.org with SMTP; 18 Jul 2000 15:53:54 -0000 Received: from orbos (200.51.12.170 [200.51.12.170]) by diginetserv01.diveo.com.ar with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id NQVDADCB; Tue, 18 Jul 2000 12:55:26 -0300 Message-ID: <005401bff0d0$a563ace0$e900a8c0@oficina.com.ar> From: "Carlos Pita" To: References: <02e301bfeda6$2db8c0e0$e900a8c0@oficina.com.ar><004801bfedb1$acc8d360$e900a8c0@oficina.com.ar> Subject: RE: RV: Nesting Tasks Date: Tue, 18 Jul 2000 12:55:43 -0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Thank you for the info. Regards a NestingTask subclassing or not a Task I believe that despite some differences there is a lot (well, actually a Task hasn't a lot of features) of commonalty. But I never was completly sure about this, so I accept that they could be thought as not being Tasks. In fact, the idea was rounding my mind from the first time. About another kind of functionality for NestingTasks: they could implement some kind of conditional structures (switch, if, etc.) nesting "dummy" else, elseif, case tasks; they could implement some kind of procedures, the special set being the parameters, the nested tasks the body. I think the proposal is very general so a lot of control tasks with very different semantics are allowed by it (it is a powerful hook, don't you think?). Carlos. ----- Original Message ----- From: Stefan Bodewig To: Sent: Tuesday, July 18, 2000 8:31 AM Subject: Re: RV: Nesting Tasks > >>>>> "CP" == Carlos Pita writes: > > CP> I had a feeling about the script Task being some kind of solution > CP> to the problems that originated my proposal (for example jar'ing > CP> classes in an arbitrary list of dirs given, for example, as a -D > CP> parameter to ant into a number of jars, one for each dir). > > XSLT can be another solution to this problem when the dirs are known > up front. > > CP> But I couldn't find out anything about BSF - the ibm site's open > CP> source section devoted to BSF has only a web access to the CVS > CP> and a broken become_a_contributor link-. > > I now see how you want to implement your NestingTask approach, it > doesn't actually need to be a subclass of Task as ProjectHelper would > have to handle it differently anyway. > > What other kind of functionality of a NestingTask would you envision, > apart from the foreach thingy you've described? > > Stefan >