protected function buildQueue()
{
$projectDir = $this->getProjectDir();
$outputDir = $this->getOutputDir();
$item = new \SplFileObject($this->getSingleFile());
if ($item->isFile()) {
try {
$factory = new View\Factory($item->getRealPath());
$view = $factory->create();
$view->setSiteConfig($this->getSiteConfig())->setOutputDir($outputDir);
$this->addView($view);
} catch (\Exception $e) {
$this->getOutputter()->stderr(str_replace($projectDir, '', $item->getRealPath()) . ': ' . $e->getMessage());
}
}
return $this;
}