https://pantsbuild.org/ logo
#general
Title
# general
b

bored-art-40741

08/27/2015, 7:46 PM
Copy code
def _populate_compile_classpath(self):
    products = self.context.products
    compile_classpath = products.get_data('compile_classpath', UnionProducts)
    for target in self.context.targets(predicate=lambda t: t in self.all_jar_libs):
      artifact_paths = []
      for coord in self.target_to_maven_coordinate_closure[target.id]:
        for artifact in self.maven_coordinate_to_provided_artifacts[coord]:
          artifact_paths.append(os.path.join(self.artifact_symlink_dir, artifact.artifact_path))
      compile_classpath.add_for_target(target, [('default', entry) for entry in artifact_paths])