Works for me on Windows NT4

-----Original Message-----
From: Stefan Bodewig [mailto:[EMAIL PROTECTED]
Sent: 19 October 2000 12:42
To: [EMAIL PROTECTED]
Subject: Re: cvs commit: jakarta-ant/src/main/org/apache/tools/ant
ProjectHelper.java


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

Reply via email to