Unrelated options question… How can I from one tas...
# general
a
Unrelated options question… How can I from one task inspect another task’s options?
a
self.context.options.for_scope(other.task.scope)
w
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