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 56570 invoked from network); 3 Nov 2000 00:54:16 -0000 Received: from majros.astrogator.se (@194.52.230.3) by locus.apache.org with SMTP; 3 Nov 2000 00:54:16 -0000 Received: from ferdinand.astrogator.se (ferdinand.astrogator.se [194.52.230.4]) by majros.astrogator.se (8.9.3/8.9.3) with ESMTP id BAA10256 for ; Fri, 3 Nov 2000 01:54:15 +0100 (MET) Received: from jonlap ([38.170.23.19]) by ferdinand.astrogator.se (8.9.3/8.9.3) with SMTP id BAA28961 for ; Fri, 3 Nov 2000 01:54:13 +0100 (MET) From: =?iso-8859-1?Q?Jon_Tirs=E9n?= To: Subject: RE: [PATCH] Dynamic target Date: Thu, 2 Nov 2000 16:54:08 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: <635802DA64D4D31190D500508B9B04104E0F82@dcsrv0> Importance: Normal X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Yes! The ability to specify targets as a pattern is the proper generalization/formalization of Jonas' proposal. And since make has had that for a RLTN (Really Long Time Now ;) it's a pretty proven feature. That is an extremely useful tool for build-system-generalization, and probably what I miss most from make. So, was it a target-pattern war or anything? I'm pretty new to this list. What was the reason for not having target-patterns? I'm extremely +1 for target-patterns. Also: ... is not the implementation of what Jonas proposed, basically the "dynamic.target" magic property of Jonas is the same as the $< magic property of make. -----Original Message----- From: Jose Alberto Fernandez [mailto:JFernandez@viquity.com] Sent: Thursday, November 02, 2000 3:02 PM To: 'ant-dev@jakarta.apache.org' Subject: RE: [PATCH] Dynamic target My concern here is how do you plan to dealt with multiple targets? If I do: ant unk1 unk2 unk3 what Jonas proposed will not work since the property will only get one value (not mutable). I do not have a solution for the problem either. How does this work if I have: would the execution of known1 cause the execution of the dynamic target corresponding to "unknown2"?. If this does not work, then I think we only have a cluge. Any solid solution should work consistently independently of the situation. BTW, At some point I proposed having "template" targets. Something like: which matches any target that starts with "unk". If we add to this some rules about priorities based on how good the match is, we can get something more general and better formulated than the dynamic target concept. In particular, the dynamic target is nothing else than: ... still there is the issue of what is the scope for "dynamic.target" if the rule applies again in a dependence, what should happen? Do we need a separate concept for keeping track of the actual target name? "${}" could mean the actual name of the current target, which in the case of a matching target means the actual value matched. So no "property" attribute required. Opinions? Jose Alberto > -----Original Message----- > From: Jon Tirs�n [mailto:jon.tirsen@emm.com] > Sent: Thursday, November 02, 2000 12:05 PM > To: ant-dev@jakarta.apache.org > Subject: SV: [PATCH] Dynamic target > > > I'm not sure that the feature is 100% bad. I think that a > feature of that > kind in combination with the script-task would make much more complex > behaviour in a build-system possible. It would for example be > a very good > tool for generalizing build-files to a higher degree. > > I do agree upon that the patch is to magic/implicit in it's current > manifestation. But I do see the use of such a feature in a > very advanced > ant-build-implementation. (Such as my own. :-) > > > -----Ursprungligt meddelande----- > Fr�n: Conor MacNeill [mailto:conor@m64.com] > Skickat: den 2 november 2000 06:29 > Till: ant-dev@jakarta.apache.org > �mne: RE: [PATCH] Dynamic target > > > Jonas, > > I agree with Stefan. This is too implicit for my liking. > Specially named > targets are not a good idea, IMHO. If you did want to have > this sort of > specific meaning, (and I question whether that is the case, anyway), I > think it would require a different element name such as . > > So for now, I'm -1 on this patch. > > Conor > > >