Group classpath products by their targets

Review Request #3338 - Created Jan. 14, 2016 and submitted

Peiyu Wang
nhoward_tw, patricklaw, stuhood, zundel

This review adds the convenient method get_product_target_mappings_for_targets,
to UnionProducts and ClasspathProducts to return products or classpath
products associated with their targets.

This is so that we can look up products for the targets their belong to.

Background: attempts to create 3rdparty libraries
symlinks same way as internal libraries are created, for bundle. There are two

  1. get the classpath products for all targets in binary.closure(bfs=True) in
    one call get_classpath_entries_for_targets
  2. make the same call multiple times for each target

The issue with (2) is it does not respect the excludes same as (1), because
excludes are transitive to their dependents.

This review will allow us after calling get_classpath_entries_for_targets,
get products' for each products and make symlinks accordingly.

Stu Hood
Peiyu Wang
Peiyu Wang
Peiyu Wang
Review request changed

Status: Closed (submitted)

Change Summary:

Committed at 6969355d38be62bb8f7deb753940f554e433a2fb