--- Martijn Kruithof <[EMAIL PROTECTED]> wrote:
> Well that would be up to the "user". Would it mean
> for us that the code 
> must be in different libraries, or is it enough if
> the classes are 
> defined in separate property files / marked with
> special values, while 
> the classes can still be blended in in core ant.

right, what I have been working with is to remove the
restriction against "ant:.*" namespaces (from
AntlibDefinition).  The classes are as you guessed in
the core.  All this really is, is creating a shorthand
for our own antlibs, for scoping.  "By role" is just a
convenient way to separate the overlapping component
names, which cause the immediate need for something
along these lines.  So the easy rule is, in RE terms,
"ant:(.*)" -> "load resource
org.apache.tools.ant.\1.xml" as an antlib.

So far this seems to me to be a good solution in terms
of simplicity of implementation, and probably as good
as possible in terms of ease of use while achieving
full qualification for overlapping component names.

-Matt
> 
> Martijn
> 
> Matt Benson wrote:
> 
> >You are using my preferred syntax.  Also available
> >would be, e.g.:
> >
> ><and xmlns="ant:conditions" />
> ><and xmlns="ant:fileselectors" />
> ><and xmlns="ant:resourceselectors" />
> ><date xmlns="ant:resourceselectors" />
> ><date xmlns="ant:resourcecomparators" />
> >  
> >
> >>Is this te direction we are going with "roles":
> >>
> >><project name="foo" default="bar"
> >>   xmlns:co="ant:condition"
> >>    xmlns:set="ant:set">
> >>
> >><resourcecollection id="blah">
> >>    <set:and>
> >>        <set:files dir="foo" name="**/*.java"/>
> >>        <set:date select="newer"
> date="2005/04/15"/>
> >>    </set:and>
> >></resourcecollection>
> >>
> >></project>
> >>    
> >>
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


                
__________________________________ 
Do you Yahoo!? 
Make Yahoo! your home page 
http://www.yahoo.com/r/hs

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to