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

average-vr-56795

06/03/2019, 1:07 PM
Unrelated options question… How can I from one task inspect another task’s options?
a

aloof-angle-91616

06/03/2019, 1:08 PM
self.context.options.for_scope(other.task.scope)
w

witty-crayon-22786

06/03/2019, 5:33 PM
assuming this is about what i think it's about: rather than doing this, you should try to expose dependencies between tasks as products
so, if some task wanted to check whether any other tasks needed the runtime classpath, they could do that via:
Copy code
if self.context.products.is_required_data('runtime_classpath'):
  ..
and then populate it or not based on the result
2 Views