ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject Re: Relative / absolute path
Date Tue, 04 Mar 2003 16:48:12 GMT

----- Original Message -----
From: "Thorselius Göran" <goran.thorselius@scania.com>
To: "'Ant Users List'" <user@ant.apache.org>
Sent: Tuesday, March 04, 2003 02:00
Subject: Relative / absolute path


> Hi all.
>
> I have a file, antPropterty.xml that I want to include
> to my build.xml file.
>
>
> The problem is that ant tries to find the antProperties.xml in the same
> dir as my build.xml - file , but the file is actually located somewhere
> else.
>
> <drive>:\dir_1\dir_2\antProperties.xml
>
> <drive>:\dir_a\dir_b\build.xml
>
> Ant says:
> Cannot find \dir_a\dir_b\dir_1\dir_2\antProperties.xml
>
> How can I fix this ?

you can use relative references "../../something" or maybe an absolute
file:/// at the begininnign of the inclusion .

ant1.6 has an <import> task that is meant to simplify a lot, because now Ant
is doing the import, not the XML parser.


Mime
View raw message