Repository URL to install this package:
|
Version:
1.26.0.dev0+gite506aa5f ▾
|
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from pants.task.task import Task
class NoopExecTask(Task):
"""A base class for tasks which do nothing but produce some product_type(s).
Useful when scheduling a specific goal, as one can install subclasses of this which produce a
known product_type into that goal, then depend on those products elsewhere.
Generally tasks depend on a specific product or products, as opposed to a given goal, and do
not need this, but some tasks, eg "compile changed targets" just know they want the "compile"
goal to be run, rather than a specific product, eg jvm classfiles.
"""
def execute(self):
pass