ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Alberto Fernandez" <j_a_fernan...@yahoo.com>
Subject RE: [DISC] details of task library concept
Date Fri, 25 May 2001 12:41:44 GMT
> From: Peter Donald [mailto:donaldp@apache.org]
> 
> At 06:16 AM 5/25/01 +0100, Jose Alberto Fernandez wrote:
> >> Ick. I don't think I like using namespace in this way. I can handle
> >> naespace for "static" structural aspects (ie indicating task
> >> library or
> >> aspect attribute/element) but it can get confusing to use
> >> namespace to also
> >> indicate other projects.
> >>
> >
> >Well this are not really XML name-spaces, since they are on 
> the attribute
> >values. Not the attribute names. In any case, if we are 
> going to include
> >things in one another we will need to have a name 
> dereferencing operator. In
> >this case is ":" but it could have been anything else ( "^" 
> "->" "!" ).
> 
> Excellent - I like.
> 
> Static namespaces (ie task/aspect) allocation uses ':' for resolution
> Dynamic instance namespaces (ie other projects) allocation 
> uses '->' for
> resolution (I prefer this over '.' as '.' is commonly used in names of
> properties).
> 
> So we would now have something like
> 
> <target name="foo" depends="otherPrj->before-foo, 
> otherPrj->before-foo2">
>   <echo message="Here is the value of public property blah.present"/>
>   <echo message="in project 'Other': ${otherPrj->blah.present}"/>
> </target>
> 
> Thoughts?
> 

Ups, it just came to mind, would we need to scape "->" as "-&gt;"? :P
If that is the case maybe we need to pick some other less XML sensitive. :(

".^" reminds me of my Pascal days. 8)

Jose Alberto

> Cheers,
> 
> Pete
> 
> *-----------------------------------------------------*
> | "Faced with the choice between changing one's mind, |
> | and proving that there is no need to do so - almost |
> | everyone gets busy on the proof."                   |
> |              - John Kenneth Galbraith               |
> *-----------------------------------------------------*
> 


Mime
View raw message