Craig & Katherine,

Here's a message from ant-user that describes how to do this (for Ant, at
least, although it should work for action.xml as well).

--
Martin Cooper
Tumbleweed Communications

----- Original Message -----
From: "Stefan Bodewig" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 13, 2000 12:50 AM
Subject: Re: including other build files


> I've added an entry for this to the FAQ but unfortuately it hasn't
> been approved yet (I have no influence on this).
>
> Stefan
>
> -------------------------------------------------------------------------
>
> How do I include another fragment of a buildfile?
>
> You can use XML's way of including external files and let the parser
> do the job for Ant:
>
> <?xml version="1.0"?>
>
> <!DOCTYPE project [
>     <!ENTITY common SYSTEM "file:./common.xml">
> ]>
>
> <project name="test" default="test" basedir=".">
>
>   <target name="setup">
>     ...
>   </target>
>
>   &common;
>
>   ...
>
> </project>
>
> will literally include the contents of common.xml where you've placed
> the &common; entity.
>
> In combination with a DTD this would look like this:
>
> <!DOCTYPE project PUBLIC "-//ANT//DTD project//EN" "file:./ant.dtd" [
>    <!ENTITY include SYSTEM "file:./header.xml">
> ]>



Reply via email to