diff --git a/cake/console/libs/bake.php b/cake/console/libs/bake.php index f9f5b3d37a4..c8810781bec 100644 --- a/cake/console/libs/bake.php +++ b/cake/console/libs/bake.php @@ -48,10 +48,6 @@ function loadTasks() { parent::loadTasks(); $task = Inflector::classify($this->command); if (isset($this->{$task}) && !in_array($task, array('Project', 'DbConfig'))) { - if (empty($this->{$task}->path)) { - $path = Inflector::underscore(Inflector::pluralize($this->command)); - $this->{$task}->path = $this->params['working'] . DS . $path . DS; - } if (isset($this->params['connection'])) { $this->{$task}->connection = $this->params['connection']; } @@ -64,10 +60,6 @@ function loadTasks() { if (isset($this->params['plugin'])) { $this->{$task}->plugin = $this->params['plugin']; } - if (!is_dir($this->{$task}->path)) { - $this->err(sprintf(__("%s directory could not be found.\nBe sure you have created %s", true), $task, $this->{$task}->path)); - $this->_stop(); - } } }