Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Include xml file in build.xml

Include xml file in build.xml

2003-03-02       - By Oliver Wulff
Reply:     1     2     3     4     5  

Hi

To include an xml file I do the following:

<!DOCTYPE project [
   <!ENTITY repository SYSTEM "file:./repository.xml">
]>

&repository;

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?

Hope somebody can help me
Oliver






******************* BITTE BEACHTEN *******************
Diese Nachricht (wie auch allf?llige Anh?nge dazu) beinhaltet
m?glicherweise vertrauliche oder gesetzlich gesch?tzte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrt?mlicherweise erreicht hat, sind Sie h?flich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerst?ren und die absendende Person
umgehend zu benachrichtigen. Vielen Dank f?r Ihre Hilfe.




©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.