deva-rajan / hamake

Automatically exported from code.google.com/p/hamake
0 stars 0 forks source link

Specified target dependency resolution bugs #58

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

  1. run: hamake -f "file://$(pwd)/multiple-parents.xml" e

  2. run: hamake -f "file://$(pwd)/dangling-sibling.xml" e

What is the expected output? What do you see instead?

  1. hamake should run rules c, d, and then e, but instead hamake only runs rule c

  2. hamake should run rule b, then rule c, and then rule e, but hamake also runs rule d

Please use labels and text to provide additional information.

  The attached patch addresses two core problems during specified target dependency
  resolution:

  1. NoDepsExecutionGraph.getRootParent() returns only one of potentially many root parents

  2. NoDepsExecutionGraph.getReadyForRunTasks() gets the root parent and then finds all
     not-done children, instead of finding all not-done parents.

Original issue reported on code.google.com by petenewc...@gmail.com on 26 Aug 2011 at 1:34

Attachments: