ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Relative Paths in Imported Files
Date Mon, 18 Aug 2008 07:03:30 GMT
On Sun, 17 Aug 2008, Francisco Tolmasky <tolmasky@gmail.com> wrote:

Before I answer the original question let me state that I have seen a
bug with a combination of <macrodef>, <import> and <subant> that
manifested itself as <path>-elements using the wrong basedir - I was
able to work around it by using <presetdef> instead of <macrodef>.

Unfortunately I ran out of time and some other priorities kicked in
before I could track down the problem (or even fix it).

> Is there any way to make a relative file path from the location of
> the common.xml file itself?

Yes, see the section titled "Resolving files against the imported
file" in <http://ant.apache.org/manual/CoreTasks/import.html>

Stefan

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


Mime
View raw message