当前位置: 首页>>代码示例>>Python>>正文


Python Task.check_artifact_cache方法代码示例

本文整理汇总了Python中twitter.pants.tasks.Task.check_artifact_cache方法的典型用法代码示例。如果您正苦于以下问题:Python Task.check_artifact_cache方法的具体用法?Python Task.check_artifact_cache怎么用?Python Task.check_artifact_cache使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在twitter.pants.tasks.Task的用法示例。


在下文中一共展示了Task.check_artifact_cache方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: check_artifact_cache

# 需要导入模块: from twitter.pants.tasks import Task [as 别名]
# 或者: from twitter.pants.tasks.Task import check_artifact_cache [as 别名]
    def check_artifact_cache(self, vts):
        # Special handling for java artifacts.
        cached_vts, uncached_vts = Task.check_artifact_cache(self, vts)

        for vt in cached_vts:
            self.split_depfile(vt)
        return cached_vts, uncached_vts
开发者ID:ewhauser,项目名称:commons,代码行数:9,代码来源:java_compile.py

示例2: check_artifact_cache

# 需要导入模块: from twitter.pants.tasks import Task [as 别名]
# 或者: from twitter.pants.tasks.Task import check_artifact_cache [as 别名]
  def check_artifact_cache(self, vts):
    # Special handling for scala artifacts.
    cached_vts, uncached_vts = Task.check_artifact_cache(self, vts)

    # Localize the portable analysis files.
    self._localize_portable_analysis_files(cached_vts)

    # Split any merged artifacts.
    for vt in cached_vts:
      if len(vt.targets) > 1:
        artifacts = [self._artifact_factory.artifact_for_target(t) for t in vt.targets]
        merged_artifact = self._artifact_factory.merged_artifact(artifacts)
        merged_artifact.split()
        for v in vt.versioned_targets:
          v.update()
    return cached_vts, uncached_vts
开发者ID:samitny,项目名称:commons,代码行数:18,代码来源:scala_compile.py

示例3: check_artifact_cache

# 需要导入模块: from twitter.pants.tasks import Task [as 别名]
# 或者: from twitter.pants.tasks.Task import check_artifact_cache [as 别名]
    def check_artifact_cache(self, vts):
        # Special handling for scala artifacts.
        cached_vts, uncached_vts = Task.check_artifact_cache(self, vts)

        if cached_vts:
            # Localize the portable analysis files.
            with self.context.new_workunit("localize", labels=[WorkUnit.MULTITOOL]):
                self._localize_portable_analysis_files(cached_vts)

            # Split any merged artifacts.
            for vt in cached_vts:
                if len(vt.targets) > 1:
                    artifacts = [self._artifact_factory.artifact_for_target(t) for t in vt.targets]
                    merged_artifact = self._artifact_factory.merged_artifact(artifacts)
                    merged_artifact.split()
                    for v in vt.versioned_targets:
                        v.update()
        return cached_vts, uncached_vts
开发者ID:UrbanCompass,项目名称:commons,代码行数:20,代码来源:scala_compile.py


注:本文中的twitter.pants.tasks.Task.check_artifact_cache方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。