Skip to content

Commit

Permalink
respond to review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicexplorer committed Jan 17, 2019
1 parent 822e540 commit 54a8300
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/python/pants/backend/jvm/subsystems/jvm_tool_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from pants.option.custom_types import target_option
from pants.util.memo import memoized_property
from pants.util.meta import classproperty
from pants.util.objects import datatype
from pants.util.objects import Exactly, datatype


class JvmToolMixin(object):
Expand Down Expand Up @@ -152,11 +152,12 @@ def formulate_help():

# TODO: Deprecate .register_jvm_tool()?
class JvmToolDeclaration(datatype([
('tool_name', text_type),
'main', # Optional
('classpath', tuple),
('custom_rules', tuple),
])):
('tool_name', text_type),
# If the tool's `main` class name is supplied the tool classpath will be shaded!
('main', Exactly(text_type, type(None))),
('classpath', tuple),
('custom_rules', tuple),
])):
"""A mostly-typed specification for a JVM tool. Can be passed around across python modules."""

def __new__(cls, tool_name, main=None, classpath=None, custom_rules=None):
Expand Down Expand Up @@ -193,9 +194,8 @@ def combined_jvm_tool_names(cls):
tools which have the same fingerprint, and allows a task to invoke multiple different JVM tools
from the same nailgun instances. See #7089.
"""
raise NotImplementedError(
'combined_jvm_tool_names must be implemented to use multiple JVM tools '
'with the nailgun execution strategy!')
raise NotImplementedError('combined_jvm_tool_names is not implemented, see '
'https://github.com/pantsbuild/pants/pull/7092')

@memoized_property
def _combined_jvm_tool_classpath(self):
Expand Down

0 comments on commit 54a8300

Please sign in to comment.