Re: Getting the Path of an Included Build File

Bob Archer <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nant.user
Message-ID <[email protected]>
> build files. Like I have a structure like:
> 
> Trunk
>    ADE
>       ade.build
>    RTE
>       rte.build
>    Blah
>      blah.build
> 
> The ADE, RTE, Blah, etc folders are all products that can be built
> independently but they all will share a variety of directory paths
> (i.e.
> paths to build tools).
> 
> So in my ade.build file for example, I would do something like:
> include buildfile="..\..\global.include" />

So, do something like:

<property name="includefilepath" value="${path::get-full-path('..\..\')}" />
<include buildfile="${includefilepath}\global.include" />

Then you can use includefilepath in your include file.

BOb

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.