ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@apache.org>
Subject Re: [PATCH] Script enhancement to standardize the "project" object exposed
Date Fri, 28 Sep 2001 15:08:24 GMT
On Fri, 28 Sep 2001 18:08, Stefan Bodewig wrote:
> On Fri, 28 Sep 2001, Erik Hatcher <jakarta-ant@ehatchersolutions.com>
>
> wrote:
> > I modified it to be "me", like below:
> >
> >             beans.put("me", this);
>
> How about "self"?

I like self but ...

> I'm not sure whether the other committers will agree that adding
> references to the current target and the task itself.  It is fine with
> me, but given that Pete vetoes adding a property with the name of the
> current target, it seems likely he wouldn't enjoy these changes
> either.

yep - I don't like it ;) 

What is the reason for allowing script access to itself and it's target? What 
value does it add? Access to project is required because currently you need 
it to create tasks and uniformlly access properties.

-- 
Cheers,

Pete

"Artists can color the sky red because they know it's blue.  Those of us who
 aren't artists must color things the way they really are or people might 
 think we're stupid." -- Jules Feiffer 


Mime
View raw message