Re: AntTask buildfile inheritance for publications
Andreas Hartmann <[email protected]> Tue, 08 Apr 2003 13:48:16 +0200
| Newsgroups | gmane.comp.cms.wyona.devel |
|---|---|
| Message-ID | <[email protected]> |
Andreas Hartmann wrote:
> Hi Lenya developers,
>
> first I introduce the term "task buildfile" to describe
> a buildfile that contains targets to be executed by the
> AntTask.
>
> I think it is useful to provide some basic targets in
> a global task buildfile and to extend this in publications.
>
> My idea is to allow a task buildfile for each publication
> and merge it with the global task buildfile during the
> build process using an XSLT stylesheet:
>
> - targets with the same name are overridden
> - targets with other names are added
This is not as easy as I thought (it seems to require
a custom Ant task for this purpose). Finally, I have the
following solutions in mind:
(1) the XSLT merging approach using a custom Ant task
(2) defining the task buildfile for all tasks in the
tasks.xconf file
(3) adding a fallback to the AntTask that uses the default
task buildfile when the publication task buildfile is
missing or does not contain the specified target
Which one would you prefer? Or do you have any other
suggestions?
Andreas