ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: antlib descriptor
Date Wed, 20 Feb 2002 15:31:07 GMT
On Wed, 20 Feb 2002, Conor MacNeill <>
> Jose Alberto Fernandez wrote:

>> <ejbjar> but also basic things like <condition>, <mappers>, etc.
>> Needing to use Mutant's notation all over the place, defeates the
>> hole purpose.
> It does not need to be used all over the place. BTW, what in your
> view is the whole purpose?

If you wanted to implement ConditionBase to only hold


and throw out all addAvailable, addIsset ... methods, how would that

    <condition property="">
        <isset property="jdk1.4+" />
        <isset property="jakarta.regexp.present" />
        <isset property="jakarta.oro.present" />
look?  My understanding (no, I haven't read any code, yet) from your
description is

    <condition property="">
      <condition ant:type="or">
        <condition ant:type="isset" property="jdk1.4+" />
        <condition ant:type="isset" property="jakarta.regexp.present" />
        <condition ant:type="isset" property="jakarta.oro.present" />

which is a little too verbose for me. 8-)

>> Bt for some reason people dislike it (that is why we keep on having
>> things like <ejbjar>, <condition> etc.
> I'm not sure to what you are referring when you say people disklike
> "it". When has this sort of facility been implemented

I think he means, if people liked the verbose syntax, <conditon> would
have been implemented /that/ way:

    <condition property="">
      <container classname="">
        <condition classname="">
          <param name="property" value="jdk1.4+" />
        <condition classname="">
          <param name="property" value="jakarta.regexp.present" />
        <condition classname="">
          <param name="property" value="jakarta.oro.present" />

which would be easy to do right now.

> For example, consider a task which takes two filesets
> <diff>
>    <fromFS .../>
>    <toFS .../>
> </diff>
> It has methods like this
> addFromFS(Fileset from);
> addToFS(Fileset to);

Oh, this is where Adam needs the additional attribute to disambiguate
the addXYZ case.  Hadn't thought of it.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message