ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Cohen" <>
Subject RE: Include xml file in build.xml
Date Sun, 02 Mar 2003 13:48:57 GMT
One thing that's wrong is that it won't work in a heterogenous environment where some machines
are using Windows and others unix.  In that case, this can work:
<!DOCTYPE project [
    <!ENTITY repository SYSTEM">

Of course, this address would have to be behind the firewall, on a machine with a web server.

-----Original Message-----
From:	J.Pietschmann []
Sent:	Sun 3/2/2003 6:46 AM
To:	Ant Users List
Subject:	Re: Include xml file in build.xml

Oliver Wulff wrote:
> To include an xml file I do the following:
> <!DOCTYPE project [
>     <!ENTITY repository SYSTEM "file:./repository.xml">
> ]>
> This works fine. But I include an xml file which is the same for all
> projects and are stored at a central directory in the local filesystem.
> My question is: Can I define the location of my file dependent dynamically.
> For example, dependent on an environment variable?

Marginally possible through catalogs, but may be tricky to set up.

What's wrong with "file:///central/dir/repository.xml"?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message