/**
  * Strip off the irrelevant part of the file name (build path) and return the shortened file name.
  *
  * @param string $file
  * @return string
  */
 protected function stripBuildPath($file)
 {
     $base = $this->build->getProject()->getName() . '/' . $this->build->getId();
     return substr($file, strpos($file, $base) + strlen($base) + 1);
 }