/** * Check file to be read from * * @param string $readFile Filename * * @return void */ public function checkReadFile($readFile) { if (is_null($readFile)) { return false; } if (!file_exists($readFile)) { $msg = "{$readFile} does not exist."; if ($this->haltonerror) { throw new BuildException($msg); } $this->log($msg, Project::MSG_ERR); return false; } if (!is_readable($readFile)) { $msg = "{$readFile} is not readable."; if ($this->haltonerror) { throw new BuildException($msg); } $this->log($msg, Project::MSG_ERR); return false; } $this->ini->read($readFile); $this->log("Read from {$readFile}"); return true; }