self.context.log.debug("Mapping classpath...")
for target in self.context.targets():
// Classpath content.
files = ClasspathUtil.classpath_contents((target,), runtime_classpath, transitive=False)
// And jars; for binary deps, zinc doesn"t emit precise deps (yet).
cp_entries = ClasspathUtil.classpath_entries((target,), runtime_classpath, transitive=False)
jars = [cpe for cpe in cp_entries if ClasspathUtil.is_jar(cpe)]
for coll in [files, jars]:
for f in coll:
targets_by_file[f].add(target)
return targets_by_file
def _jar_classfiles(self, jar_file):
Returns an iterator over the classfiles inside jar_file.