> ----- Original Message -----
> From: "Jaroslaw Kowalski" <[EMAIL PROTECTED]>
> To: "Zigomanis, Nick" <[EMAIL PROTECTED]>; "Gert Driesen"
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Monday, March 22, 2004 8:16 AM
> Subject: Re: [Nant-users] Question about style task in latest nightly
build
>

> This is a general rule: all file paths are (or at least should be)
relative
> to the project that contains them. With this approach it doesn't matter
> where you run your buildfile - it should always behave the same. NAnt
tasks
> take care of making all file paths absolute when passing them to external
> utilities.
>
> If you want to have paths relative to the current directory, use
> directory::get-current-directory() for that:
>
> <property
>     name="path1"
>     value="${path::combine(directory::get-current-directory(),
> 'some_file_name')}" />
>

the problem is that we change the current directory to the project base
directory (I'm pretty sure we do this when executing nested builds using the
<nant> task), so this doesn't help much...

We should probably have a look at how we can change ... Or we should change
directory::get-current-directory to really return the initial working
directory (as it should) ...

Gert



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to