Cheers,

I found something that doesn't seem intuitive, but I'm not sure if it's
a bug or by design.  Here's a build file:


<?xml version="1.0"?>
<project 
        name="TargetTest" description="Tests get-current-target()">

    <target name="A">
        <echo message="${target::get-currenttarget()}" />
        <call target="B" />
        <echo message="${target::get-current-target()}" />
    </target>

    <target name="B" >
        <echo message="${target::get-current-target()}" />
    </target>

</project>


I would expect it to print:

     A
     B
     A

But it actually prints:

     A
     B
     B

Are the tasks in A that happen after the call to B really considered to
be a part of B?  This seems like a bug.

Oh, btw, I'm using NAnt 0.85 (Build 0.85.1740.0; net-1.0.win32; nightly;
10/6/2004)


-Steve




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

Reply via email to