self.context.products.get_data("rsc_classpath").add_for_target(
compile_cc.target,
[(conf, compile_cc.jar_file) for conf in self._confs])
elif target.has_sources(".scala"):
pass
else:
pass
After Change
self.context.products.get_data("rsc_classpath").add_for_target(
rsc_cc.target,
[(conf, rsc_cc.rsc_mjar_file) for conf in self._confs])
elif self._metacpable(target):
// Walk the metacp results dir and add classpath entries for all the files there.
// TODO exercise this with a test.
for root, dirs, files in os.walk(rsc_cc.rsc_index_dir):
self.context.products.get_data("rsc_classpath").add_for_target(
rsc_cc.target,
[(conf, os.path.join(root, f)) for conf in self._confs for f in files]
)
else:
pass