Bugs item #1177737, was opened at 2005-04-06 15:00
Message generated for change (Settings changed) made by drieseng
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1177737&group_id=31650
Category: Tasks
Group: 0.85
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: gabrandt (gabrandt)
>Assigned to: Gert Driesen (drieseng)
Summary: nant task relative directory
Initial Comment:
we are updating our nant source from a nightly version
(4/14/2004) to rc1 or rc2. there seems to be a behavior
difference with <nant> tasks; when executing a build file
located in a sub directory, the current directory remains
that of the calling build file. in our current version, the
relative location matched the executing build file
location. is this a known change? it seems limiting that
a called build file would have to be aware of it's relative
position to it's caller in order to refer to any file
resources.
----------------------------------------------------------------------
Comment By: gabrandt (gabrandt)
Date: 2005-04-11 14:20
Message:
Logged In: YES
user_id=1249651
ok to close, i see the change and we will work around
----------------------------------------------------------------------
Comment By: Gert Driesen (drieseng)
Date: 2005-04-10 17:41
Message:
Logged In: YES
user_id=707851
Does my explanation make sense to you ?
Is it ok to close this bug report ?
----------------------------------------------------------------------
Comment By: Gert Driesen (drieseng)
Date: 2005-04-06 15:09
Message:
Logged In: YES
user_id=707851
This is indeed a change that we made, but as this change
was not a change in behaviour compared to other officially
relased version of NAnt, we have not documented it as a
change.
In fact, the current directory is not set to the directory of the
calling build file, but the original working directory.
The reason for this change is that it allows more flexibility for
build files that want to perform tasks on the original working
directory. Also, there was no real need for changing the
current directory to the directory of the executing build file, as
all NAnt tasks will resolve files to the project base directory
anyway.
If necessary, a called build file can always determine its
directory using the expression support that was introduced in
NAnt 0.85.
For example:
<echo message="project base directory=${project::get-base-
directory()}" />
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1177737&group_id=31650
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
nant-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-developers