ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chad Loder <clo...@acm.org>
Subject Re: Ant <project> extension, templatized build files
Date Wed, 01 May 2002 21:28:08 GMT
At Wednesday 5/1/2002 05:04 PM -0400, you wrote:
>I've never seen anyone post any design or patches for integrating any kind
>of templating into Ant's core.  So currently it would need to be built on
>top of Ant.  I certainly welcome proposals and code patches that make it
>more integrated - and can only comment on such after seeing it myself.

The first message I sent on this thread is in fact such a
design proposal. I really would welcome comments on it.
I've requoted it here FYI.

One constraining factor that I can think of is, how would you
deal with an "extends=" attribute which contains property
references?

=============================================================
 From my brief perusal of Project.java, it looks like
this wouldn't be too hard to accomplish by adding
something like:

         private Project template;

and then use this variable as a "last resort" for
obtaining properties/task/references definitions not
found in the "child" object.

The syntax might look something like:

<project name="r7" default="build" basedir="." extends="projtmpl.xml">
</project>

Is this an idea that has been broached before? Does it sound
like a good idea, bad idea? Any obvious complications I might be
overlooking?
=============================================================



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


Mime
View raw message