コード例 #1
0
ファイル: Diagnostics.php プロジェクト: Ingewikkeld/phing
 /**
  * Print a report to the given stream.
  *
  * @param PrintStream $out the stream to print the report to.
  */
 public static function doReport(PrintStream $out)
 {
     $out->println(str_pad('Phing diagnostics report', 79, "-", STR_PAD_BOTH));
     self::header($out, "Version");
     $out->println(Phing::getPhingVersion());
     self::header($out, "Project properties");
     self::doReportProjectProperties($out);
     self::header($out, "System properties");
     self::doReportSystemProperties($out);
     self::header($out, "PHING_HOME/vendor package listing");
     self::doReportPhingVendorLibraries($out);
     self::header($out, "COMPOSER_HOME/vendor package listing");
     self::doReportComposerSystemLibraries($out);
     self::header($out, "Tasks availability");
     self::doReportTasksAvailability($out);
     self::header($out, "Temp dir");
     self::doReportTempDir($out);
 }
コード例 #2
0
ファイル: Project.php プロジェクト: Ingewikkeld/phing
 /**
  * Get the minimum required phing version
  * @return string
  */
 public function getPhingVersion()
 {
     if ($this->phingVersion === null) {
         $this->setPhingVersion(Phing::getPhingVersion());
     }
     return $this->phingVersion;
 }
コード例 #3
0
ファイル: agavi.php プロジェクト: philippjenni/icinga-web
function input_version(AgaviOptionParser $parser, $name, $arguments, $scriptArguments)
{
    $GLOBALS['OUTPUT']->write('Agavi project configuration system, script version $Id: agavi.php 4667 2011-05-20 12:34:58Z david $' . PHP_EOL);
    $GLOBALS['OUTPUT']->write(Phing::getPhingVersion() . PHP_EOL);
    exit(0);
}