ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Martin <jeff.mar...@synamic.co.uk>
Subject RE: cvs commit: jakarta-ant/src/main/org/apache/tools/ant Project Helper.java
Date Thu, 19 Oct 2000 13:14:19 GMT
Works for me on Windows NT4

-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@bost.de]
Sent: 19 October 2000 12:42
To: ant-dev@jakarta.apache.org
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

Mime
View raw message