ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jose Alberto Fernandez <JFernan...@viquity.com>
Subject RE: [PATCH] Dynamic target
Date Thu, 02 Nov 2000 23:02:26 GMT
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:

  <target name="known1" depends="unknown2" />

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:

  <target match="unk*" property="prop.name"..... />

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:

  <target match="*" property="dynamic.target" ....>
    ...
  </target>

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 <dynamic>.
> 
> So for now, I'm -1 on this patch.
> 
> Conor
> 
> 
> 

Mime
View raw message