ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petar Tahchiev <paranoia...@gmail.com>
Subject Re: Relative paths
Date Fri, 13 Jan 2006 11:13:30 GMT
On 13/01/06, Paulo Jorge Guedes <Paulo.Guedes@artelecom.pt> wrote:
>
> Hi,
>
> I have this directory structure:
>
> Root
>         Apps
>                 App1
>                         Nbproject
>                         Src
>
> The build.xml files just import the files in the inner directories. The
> build file on nbproject folder does all the work.
> In each file I set the "basedir" attribute of "project" element to ".".
> The problem is that the build file in nbproject is ignoring its basedir
> setting using the one defined by the build file in the root directory.
>
> I'm out of ideas and would appreciate any help.
>
> Thanks in advance,
>
> Paulo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
I am no sure if my solution is good enough but when I have to get the
directory where a build.xml is situated(of course this solution works if
your basedir is .) I get it using the inner properties of ANT: ${
ant.file.NAMEOFIMPORTEDPROJECT}

Hope that helps!

--
Regards, Petar!

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message