ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niamath Khan <niamath_k...@yahoo.com>
Subject Re: [DISCUSS] EasyAnt: Ant based pre packaged build system for java projects
Date Fri, 11 Jan 2008 18:32:03 GMT
Please unsubscribe me from the following list.
 


----- Original Message ----
From: Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
To: Ant Developers List <dev@ant.apache.org>
Sent: Friday, January 11, 2008 10:40:40 AM
Subject: Re: [DISCUSS] EasyAnt: Ant based pre packaged build system for java projects

On Jan 11, 2008 5:14 PM, Dominique Devienne <ddevienne@gmail.com> wrote:
> On Jan 11, 2008 8:11 AM, Stefan Bodewig <bodewig@apache.org> wrote:
> > "Gilles Scokart" <gscokart@gmail.com> writes:
> >
> > > I never thought to overwrite macro to customize a generic build script.  Can
> > > macro be overwritten?
> >
> > Sure, it's just another Ant task that has been defined.
>
> But my point is that most of the time, you never want to override
> things (macros or target), but augment them with some kind of pre or
> post processing. Peo's point of simply copy-pasting the "abstract"
> build code to fully override the target duplicates that code, and
> makes build maintenance all the more difficult. That's the well known
> issue with code generator and code wizards when it's done in a one-of
> way. Copy-pasting a target content shows failure of the generic build
> to be flexible, and should be the exception rather than the rule, and
> actually frowned upon IMHO. --DD

That is correct. However, being able to do it still beats not being
able to. It allows for a better balancing of accommodating yet another
esoteric hook request and making the template yet more complex vs.
just telling someone to inline and tweak the template for their
esoteric case.

And being able to learn from looking at the imported script is also
very valuable.

But I think we understand each other, basically. ;)

-peo

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message