Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
pantsbuild.pants / task / noop_exec_task.py
Size: Mime:
# 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