#250 ant.project.invoked-targets not updated when antcallback invokes

v1.0 (example)
open
nobody
None
5
2014-09-19
2014-01-07
gbaxter
No

I have a myriad of projects running under a single parent build.xml file. In order to help debug builds, I have the following echo at the start of a common build.xml that all the project build.xml files depend on:

<echo message="Running ${ant.project.invoked-targets} for project ${ant.project.name}"/>

However, the output when an antcallback is invoked displays the original target.

e.g,:

ant all

outputs

Running all for project xxx

but also when

<target name="test-run-internal">
  <parallel threadcount="4">
    <antcallback target="junitForShard" return="failed" inheritRefs="true">
      <param name="junit.parallel.numShards" value="4" />
      <param name="junit.parallel.shard" value="0" />
    </antcallback>
    <antcallback target="junitForShard" return="failed" inheritRefs="true">
      <param name="junit.parallel.numShards" value="4" />
      <param name="junit.parallel.shard" value="1" />
    </antcallback>
    <antcallback target="junitForShard" return="failed" inheritRefs="true">
      <param name="junit.parallel.numShards" value="4" />
      <param name="junit.parallel.shard" value="2" />
    </antcallback>
    <antcallback target="junitForShard" return="failed" inheritRefs="true">
      <param name="junit.parallel.numShards" value="4" />
      <param name="junit.parallel.shard" value="3" />
    </antcallback>
  </parallel>
 </target>

runs, I see 4 of the following:

Running all for project xxx

instead of

Running junitForShard for project xxx

Discussion


Log in to post a comment.

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks