ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Price <epr...@ptc.com>
Subject Re: Relative / absolute path
Date Tue, 04 Mar 2003 16:59:59 GMT


Thorselius Göran wrote:

[...]

> <!DOCTYPE project [
>     <!ENTITY include SYSTEM "\dir_1\dir_2\antProperties.xml">
> ]>

[...]

> Ant says: 
> Cannot find \dir_a\dir_b\dir_1\dir_2\antProperties.xml
> 
> How can I fix this ?

Try using crossplatform-style file hierarchy delimiters -- in other 
words, forward-slashes (even if you're on Win32).  Something like this 
should work:

<!ENTITY include SYSTEM "../dir_1/dir_2/antProperties.xml">

Which assumes that you have a file hierarchy like this:

/above_dir_1
   /dir_1
     /dir_2
       antProperties.xml
   /some_other_dir
     build.xml

Obviously custom-taylor to your own filesystem setup.



Erik


Mime
View raw message