20c9059bee7eb4fcc2fb9778b790c15d022f7694,src/python/pants/backend/jvm/tasks/jvm_compile/zinc/zinc_compile.py,ZincCompile,plugin_args,#ZincCompile#,379

Before Change


      return []

  def plugin_args(self):
    if self._lazy_plugin_args is None:
      self._lazy_plugin_args = self._create_plugin_args()
    return self._lazy_plugin_args

  def _create_plugin_args(self):
    if not self.get_options().scalac_plugins:

After Change



  @memoized_property
  def plugin_args(self):
    if not self.get_options().scalac_plugins:
      return []

    plugin_args = self.get_options().scalac_plugin_args
    active_plugins = self._find_plugins()
    ret = []
    for name, jar in active_plugins.items():
      ret.append("-S-Xplugin:{}".format(jar))
      for arg in plugin_args.get(name, []):
        ret.append("-S-P:{}:{}".format(name, arg))
    return ret

  def _find_plugins(self):
    Returns a map from plugin name to plugin jar.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: pantsbuild/pants
Commit Name: 20c9059bee7eb4fcc2fb9778b790c15d022f7694
Time: 2015-12-30
Author: stuhood@gmail.com
File Name: src/python/pants/backend/jvm/tasks/jvm_compile/zinc/zinc_compile.py
Class Name: ZincCompile
Method Name: plugin_args


Project Name: pantsbuild/pants
Commit Name: a6a98fea5e37788fdb52d0791111802167f72ed5
Time: 2018-02-01
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/jvm/tasks/junit_run.py
Class Name: JUnitRun
Method Name: _execute


Project Name: pantsbuild/pants
Commit Name: 6d8625611ff936bab56d15a2b36e0aba7e54612e
Time: 2017-03-30
Author: benjyw@gmail.com
File Name: src/python/pants/backend/python/tasks2/pytest_run.py
Class Name: PytestRun
Method Name: _do_run_tests