ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <peter.rei...@corvil.com>
Subject Re: AW: Vote: <local> for 1.6
Date Thu, 23 Oct 2003 15:09:47 GMT
On Thursday 23 October 2003 15:16, Dominique Devienne wrote:
> > From: peter reilly [mailto:peter.reilly@corvil.com]
> >
> > On Wednesday 22 October 2003 08:41, Antoine Lévy-Lambert wrote:
> > > I am OK for the third beta.
> > > In the third beta we should have :
> > > - the <local> properties,
> > > - a new xml-apis.jar (probably the one which is distributed with
> > > Xerces-Java 2.5)
> > > - can we also have the endorsed libraries ?
> > > - other points ?
> >
> > * there was some discussion on the namespace support -
> >    - should the default uri be "antlib:org.apache.tools.ant" to
> >      be consistent with other antlib uri's
> >      + I had argued before that it should not, but now I think
> >        it should.
> >
> > * antlib support
> >    - should <typedef resource="x"/> look for all instances of x or
> >      just the first one.
> >      + I think it should.
>
> Two remarks:
>
> 1) If, as I hope, the Ant namespace URI changes to
>    "antlib:org.apache.tools.ant", then an antlib.xml
>    would be available there. For consistency's sake,
>    but also because of (2) below...
>
> 2) This Ant antlib.xml would of course reference the
>    existing tasks/types properties files, but *additionally*
>    declare all the little types, like selectors, mappers, etc...

A couple of proplems with this:
   * roles are not implemented in ant 1.6 so there
     is no way to disguish or as a condition, or as a selector - etc
   * mappers are not yet implemented in this way
   * antlib.xml for ant core/optional would be quite large and some work would
     need to be done to speed up loading from and antlib.
>
> Without (2), I cannot right a custom task with a new
> add(FilenameSelector) introspection point (or add(Condition), etc..),
> and be able to use the built-in Ant selectors, conditions, etc...
> (at least not without an explicit declaration for them somewhere.)

One needs to extend the current container base classes 
(o.a.t.ant.taskdefs.condition.ConditionBase) or
implement the current container interfaces (
(o.a.t.ant.types.selector.SelectorContainer).

But this is not a nice situation...

Peter

> It would be really strange to be able to use such custom types
> (selectors, mappers, conditions, etc...) as usual in Ant 1.6,
> but not the Ant built-in ones.
>
> --DD
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message