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=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to