Share

NAnt - A .NET Build Tool

Tracker: Bugs

5 target::get-current-target() incorrect after <call> - ID: 1090260
Last Update: Comment added ( drieseng )

When you have this build file :

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

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

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

This results in the following output :

A:

[echo] A

C:

[echo] C

B:

[echo] B
[echo] B

Meaning, the second <echo> in target "A" actually
returns "B", while this should ofcourse be "A".

After the <call> task is used to execute a target, the
current target should be the target that contains the
<call> task.



Gert Driesen ( drieseng ) - 2004-12-23 08:15

5

Closed

Fixed

Gert Driesen

Functions

0.85

Public


Comment ( 1 )

Date: 2004-12-23 08:44
Sender: driesengProject AdminAccepting Donations

Logged In: YES
user_id=707851

Fixed in CVS.


Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2004-12-23 08:44 drieseng
resolution_id None 2004-12-23 08:44 drieseng
close_date - 2004-12-23 08:44 drieseng