#267 target::get-current-target() incorrect after <call>

0.85
closed-fixed
Functions (16)
5
2004-12-23
2004-12-23
No

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.

Discussion

  • Gert Driesen

    Gert Driesen - 2004-12-23

    Logged In: YES
    user_id=707851

    Fixed in CVS.

     
  • Gert Driesen

    Gert Driesen - 2004-12-23
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks