本文整理汇总了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
示例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
示例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