Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updating path setting in bake, so paths

are not overwritten.
  • Loading branch information...
commit 375e175ac80db8caf75441b74ea9d9ad3bcf2d8c 1 parent 84a4960
@markstory markstory authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 cake/console/libs/bake.php
View
8 cake/console/libs/bake.php
@@ -49,9 +49,11 @@ class BakeShell extends Shell {
function loadTasks() {
parent::loadTasks();
$task = Inflector::classify($this->command);
- if (isset($this->{$task}) && !in_array($task, array('Project', 'DbConfig', 'Fixture'))) {
- $path = Inflector::underscore(Inflector::pluralize($this->command));
- $this->{$task}->path = $this->params['working'] . DS . $path . DS;
+ 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'];
}
Please sign in to comment.
Something went wrong with that request. Please try again.