/** * @see AbstractTask::checkParams() */ protected function checkParams() { parent::checkParams(); if (null === $this->rollbackTag) { throw new BuildException(sprintf('Please specify the tag to rollback to!', $this->rollbackTag)); } }
protected function checkParams() { parent::checkParams(); if (null === $this->command) { throw new BuildException('Please provide a liquibase command.'); } }
/** * @see AbstractTask::checkParams() */ protected function checkParams() { parent::checkParams(); if (null === $this->outputDir or !is_dir($this->outputDir)) { if (!mkdir($this->outputDir, 0777, true)) { throw new BuildException(sprintf('The directory "%s" does not exist and could not be created!', $this->outputDir)); } } if (!is_writable($this->outputDir)) { throw new BuildException(sprintf('The directory "%s" is not writable!', $this->outputDir)); } }
/** * @see AbstractTask::checkParams() */ protected function checkParams() { parent::checkParams(); if (null === $this->referenceUsername) { throw new BuildException('Please provide a username for the reference database acccess!'); } if (null === $this->referencePassword) { throw new BuildException('Please provide a password for the reference database acccess!'); } if (null === $this->referenceUrl) { throw new BuildException('Please provide a url for the reference database acccess!'); } }