You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Oliver Wulff <ol...@zurich.ch> on 2003/03/02 13:35:01 UTC

Include xml file in build.xml

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.



Re: Include xml file in build.xml

Posted by Antoine Levy-Lambert <le...@tiscali-dsl.de>.
In the ant 1.6alpha, there is an import task which might suit your needs.
You may want to download it from this location
http://cvs.apache.org/builds/ant/nightly/
Antoine
----- Original Message -----
From: "Oliver Wulff" <ol...@zurich.ch>
To: <an...@jakarta.apache.org>
Sent: Sunday, March 02, 2003 1:35 PM
Subject: Include xml file in build.xml


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.



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org



Re: Include xml file in build.xml

Posted by "J.Pietschmann" <j3...@yahoo.de>.
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"?

J.Pietschmann