Hi Justin,

This has been changed, but it should not affect users using NAnt tasks that
are part of the NAnt distribution. I'll look into the history of this
change, and add info to the release notes (for the next release
(candidate)).

In your custom tasks, you should use Project.GetFullPath to resolve a
relative to an absolute path.

In your build scripts, you can use project::get-base-directory() to get the
base directory of the build file.

Gert

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> James, Justin
> Sent: dinsdag 17 mei 2005 15:35
> To: nant-users@lists.sourceforge.net
> Subject: [Nant-users] Problem with Nant Tasks
> 
> I am trying to upgrade a bunch of build files from .84 to .85 rc3 and
> ran into an issues with the nant tasks.  In .84 when you used the nant
> tasks the  build file would execute from the directory where 
> the called
> build file was located so any directory references that we relative to
> the build file directory worked just fine.  In .85 it appears that the
> build file is executed from the directory where the build 
> file that call
> the nant tasks is located so any relative directory references fail.
> Did something changes with this behavior from .84 to .85?  I 
> did not see
> anything in the release notes about this.
> 
> My Build File with the nant tasks (I tried updating it to use the
> buildfiles fileset with the same results):
>       <nant 
>          buildfile="..\MyTest\build\dbScripts.build" 
>          target="${target.to.run}" 
>          inheritall="true"
>          failonerror="true"                   
>       >
>               <properties>
>                       <property name="dotNetFramework.dir"
> value="c:\windows\Microsoft.NET\Framework\v1.1.4322" 
> readonly="true" />
>               </properties>
>       </nant>
> 
> My called build file using a custom tasks that I wrote:
> 
>               <!-- returns ..\SQL\App\Dts\ for the directory which is
> relative to the build directory for MyTest -->
>               <echo message="Adding Shift DTS Package:
> ${source.basedir}\App\DTS\Shifts.dts" />
> 
>               <-- returns the directory location of the calling build
> scripts instead of the running build script -->
>               <echo message="${directory::get-current-directory()}" />
> 
> Thx
> Justin
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by Oracle Space Sweepstakes
> Want to be the first software developer in space?
> Enter now for the Oracle Space Sweepstakes!
> http://ads.osdn.com/?ad_idt12&alloc_id344&op=ick
> _______________________________________________
> Nant-users mailing list
> Nant-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
> 



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_idt12&alloc_id344&op=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to