Could somebody please check whether this does what it is supposed to
do on Windows?
Create a file shared.xml:
----------------snip-----------------
<target name="shared">
<echo message="shared" />
</target>
----------------snip-----------------
Create a directory sub1 and in there a file build.xml:
----------------snip-----------------
<?xml version="1.0"?>
<!DOCTYPE project [
<!ENTITY shared SYSTEM "file:../shared.xml">
]>
<project name="sub1" basedir="." default="shared">
&shared;
</project>
----------------snip-----------------
and invoke ant -f sub1/build.xml from the directory where shared.xml
resides.
The result should look like this
----------------snip-----------------
Buildfile: sub1/build.xml
shared:
shared
BUILD SUCCESSFUL
----------------snip-----------------
Thanks
Stefan