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.
Logged In: YES
user_id=707851
Fixed in CVS.