You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by jeroen <15...@student.eur.nl> on 2000/10/09 12:39:21 UTC

including build files the xml way?

Hi,

Is there a way to include build files in another build file the way you
would include xml files according to the xml standard (the one the ant
parser uses)? I would very much like this because including other build
files using the ant task requires me to make a ant task for every task I
want to run from the included build file.

Jeroen


RE: including build files the xml way?

Posted by Marcel Schutte <ma...@schutte.com>.
Jeroen,

Yes you can, I use the following in my build.xml:

<?xml version='1.0'?>

<!DOCTYPE project PUBLIC "-//ANT//DTD project//EN"
file:../utils/current.dtd">

<project name="test" default="task" basedir=".">
&include;
</project>

And in the referenced dtd:

<!ENTITY include SYSTEM "message.xml">

By the way, you can create a dtd for ant with the <antstructure> task

Good luck,
Marcel