コード例 #1
0
ファイル: Base.php プロジェクト: xinc-develop/xinc-core
 /**
  * copies some basic informations to the build object
  * @param Xinc::Core::Build::BuildInterface
  */
 protected function setupBuildProperties(BuildInterface $build)
 {
     $project = $build->getProject();
     $build->setProperty('project.name', $project->getName());
     $build->setProperty('build.number', $build->getNumber());
     $build->setProperty('build.label', $build->getLabel());
 }
コード例 #2
0
 /**
  * Return the label for this build.
  *
  * @param Xinc_Build_Interface $build
  *
  * @return string
  */
 public function getLabel(BuildInterface $build)
 {
     $buildNo = $build->getNumber();
     if ($buildNo == null) {
         $buildNo = $this->_firstBuild;
     }
     $buildLabel = $this->_prefix . $buildNo;
     $build->setProperty('build.label', $buildLabel);
     return $buildLabel;
 }