public function main()
 {
     if (self::$cliConfig == null) {
         if (!file_exists($this->cliConfigFile)) {
             throw new \BuildException("Path to CLI Config has to be valid!");
         }
         include $this->cliConfigFile;
         if (!isset($cliConfig) || !$cliConfig instanceof \Doctrine\Common\Cli\Configuration) {
             throw new \BuildException("Doctrine CLI Config file has to create a \$cliConfig variable");
         }
         self::$cliConfig = $cliConfig;
     }
     $this->_doRun(self::$cliConfig);
 }
 public function main()
 {
     if (self::$helperSet === null) {
         if (!file_exists($this->cliConfigFile)) {
             throw new \BuildException("Path to CLI config file must be valid!");
         }
         include $this->cliConfigFile;
         if (!isset($helperSet)) {
             throw new \BuildException("Doctrine CLI config file must create a \$helperSet" . " variable.");
         }
         if (!$helperSet instanceof HelperSet) {
             throw new \BuildException("\$helperSet must be an instance of" . "Symfony\\Component\\Console\\Helper\\HelperSet.");
         }
         self::$helperSet = $helperSet;
     }
     $this->_doRun(self::$helperSet);
 }