You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "ALIA-SC, David" <Da...@AirLiquide.com> on 2003/03/04 17:53:46 UTC

RE : Relative / absolute path

Or is it simply due to "\" instead of "/" ?

David

----- Original Message -----
From: "Thorselius Göran" <go...@scania.com>
To: "'Ant Users List'" <us...@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.


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