ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Restricted types: Re: Location in non-Task tasks
Date Thu, 14 Sep 2006 04:32:53 GMT
On Tue, 12 Sep 2006, Peter Reilly <peter.kitt.reilly@gmail.com> wrote:

> Ok, I dug out my old code and after digging out some of the bugs
> and misunderstanding, I have modded IH, CH (componenthelper),
> and <typedef> to allow "restricted" types.
> 
> These are like normal types except:
>   1) they are only allowed in add[Configured](Class) contexts, they
>       cannot be used at the top level or task containers.
>   2) One can have a multiple number of definitions with
>       the same name. IH will pick the one that matches the
>       add() methods in the container class. If there are multiple
>       matches, - for example class that has add(Condition) and
> add(FileSelector)
>       presented with "and", IH will throw a buildexception for
>       ambigeous.

+1

> I am not too sure this should be user visible but it can be
> implemented by an extra attribute to the typedef task -
> restrict=yes/no default is no.

Like the others I'd prefer a new taskname as well, just don't ask me
for names.

> One problem is that the antlib.xml for antlib:org.apache.tools.ant
> would be long and tedious when all the conditions, selectors,
> mappers, resources are added.

I don't think this is really that big a problem, but I'm fine with
automation as well.

Stefan

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


Mime
View raw message