ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: Abusing the BuildListener
Date Fri, 14 Jul 2006 15:48:06 GMT
--- Henri Yandell <flamefew@gmail.com> wrote:

> On 7/14/06, Steve Loughran <stevel@apache.org>
> wrote:
> > Henri Yandell wrote:
> > > Reading the presetdef manual page, it sounds
> like it's not what I want
> > > because it only sets defaults and not mandated
> values. I don't want to
> > > allow the build.xml to change the settings.
> >
> > Well, if you are being really ruthless, you could
> subclass junit, and
> > have a distro with a modified properties file
> defining the junit typedef
> > and pointing at your subclass. The subclass gets
> to enforce its own rules...
> 
> Yeah, that's what I was originally going to do. I
> got excited when I
> realised that not only could I use -listener to hack
> it, I could
> possibly do it in such a way that I had some kind of
> AspectAnt that
> would let me modify Ant on the fly for other tasks.
> 
> Is that going to be impossible for subtags, or do I
> just need to grok
> how UnknownElements work etc?

Am I being dense here?  I haven't grasped why you need
to use UEs instead of using task/type classes
directly.  The UnknownElement is generally an artifact
of Ant's XML configuration mechanism and can (should)
be bypassed in programmatic Ant usage.

-Matt

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


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message