Ejemplo n.º 1
0
    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
Ejemplo n.º 2
0
    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
Ejemplo n.º 3
0
  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
Ejemplo n.º 4
0
    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
Ejemplo n.º 5
0
  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
Ejemplo n.º 6
0
    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