# coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
                        unicode_literals, with_statement)

from pants.task.noop_exec_task import NoopExecTask


class NoopCompile(NoopExecTask):
  """A no-op that provides a product type that can be used to force scheduling."""

  @classmethod
  def product_types(cls):
    return ['ran_compile']


class NoopTest(NoopExecTask):
  """A no-op that provides a product type that can be used to force scheduling."""

  @classmethod
  def product_types(cls):
    return ['ran_tests']

# coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
                        unicode_literals, with_statement)

from pants.task.noop_exec_task import NoopExecTask


class NoopCompile(NoopExecTask):
  """A no-op that provides a product type that can be used to force scheduling.

  :API: public
  """

  @classmethod
  def product_types(cls):
    return ['ran_compile']


class NoopTest(NoopExecTask):
  """A no-op that provides a product type that can be used to force scheduling.

  :API: public
  """

  @classmethod
  def product_types(cls):
    return ['ran_tests']

Add public api markers for core_tasks
Add public api markers for core_tasks

The following modules were reviewed and all api's were left as private. As
far as I can tell these modules are not currently used by plugins.

* pants.core_tasks.bash_completion.py
* pants.core_tasks.changed_target_tasks.py
* pants.core_tasks.clean.py
* pants.core_tasks.deferred_sources_mapper.py
* pants.core_tasks.explain_options_task.py
* pants.core_tasks.invalidate.py
* pants.core_tasks.list_goals.py
* pants.core_tasks.pantsd_kill.py
* pants.core_tasks.register.py
* pants.core_tasks.reporting_server_kill.py
* pants.core_tasks.reporting_server_run.py
* pants.core_tasks.roots.py
* pants.core_tasks.run_prep_command.py
* pants.core_tasks.targets_help.py
* pants.core_tasks.what_changed.py

Testing Done:
CI green: https://travis-ci.org/pantsbuild/pants/builds/111549646

Bugs closed: 2710, 2955

Reviewed at https://rbcommons.com/s/twitter/r/3490/
