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

brief-engineer-67497

12/04/2018, 10:53 AM
so I have a target which declare jar_library dependencies and a task that works on it. The task tries to access to the jars using :
Copy code
jar_import_products = self.context.products.get_data(JarImportProducts)
 imports = jar_import_products.imports(target)
however
imports
is an empty array … is this normal ? I ask the question because it's a plugin that do not seem actively maintained and I don't know if I have to fix the way the jars are registered or if I should use another way to retrieve the jar dependencies (the above lines come from here : https://github.com/scalapb/scalapb-pants/blob/master/src/python/trueaccord/pants/scalapb/tasks/scalapb_gen.py#L97 )
3 Views