ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wannheden, Knut" <>
Subject RE: [SUBMIT] Xinclude task
Date Thu, 06 Jun 2002 07:03:54 GMT

I was hoping that the <xinclude> task you submitted would actually allow me
to include some external file into the Ant buildfile.  I have been using the
<ejen> task ( for some time now, and with it
you can achieve the same effect as with <xinclude> and much more.  Just
thought I'd mention it here.


> -----Original Message-----
> From: Ernst de Haan []
> Sent: Mittwoch, 5. Juni 2002 18:46
> To:
> Cc: Elliotte Rusty Harold; Peter Troon; Chris Gilbride
> Subject: [SUBMIT] Xinclude task
> Hi all,
> Here's an XInclude task, based on elharo's XInclude engine 
> (thanks Elliot!).
> In order to compile Ant with this task, do the following:
> (1) make sure youi have jakarta-ant from CVS
> (2) apply the attached build.xml.diff patch to jakarta-ant/build.xml
> (3) apply the attached to 
> jakarta-ant/src/main/org/apache/tools/ant/taskdefs/
> (4) put the attached in 
> jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional
> (5) download macfaq-xinclude.jar from 
> or download 
.gz and build 
the JAR yourself
(6) Make sure macfaq-xinclude.jar is in your CLASSPATH.
(7) Rebuild Ant with commands like 'cd jakarta-ant' and 'ant clean main'
(8) Unzip the attached ant-xinclude.example.tar.gz. It contains a single 
directory named 'ant-xinclude-example' and in there:
* build.xml
* sample.xml
* head.xml
* body.xml
The sample.xml file includes body.xml and head.xml.
(9) Run the newly built Ant inside the directory. It generates a file called

out.xml that contains the contents of sample.xml with body.xml and head.xml 
in it. The example is very straight-forward.


Ernst de Haan
EuroNet Internet B.V.

    "Come to me all who are weary and burdened
        and I will give you rest" -- Jesus Christ

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message