diff --git a/lib/Cake/Console/Command/Task/ExtractTask.php b/lib/Cake/Console/Command/Task/ExtractTask.php index 1949f08a8e3..b6e23034163 100644 --- a/lib/Cake/Console/Command/Task/ExtractTask.php +++ b/lib/Cake/Console/Command/Task/ExtractTask.php @@ -178,14 +178,6 @@ public function execute() { $this->_extractCore = strtolower($response) === 'y'; } - if ($this->_extractCore) { - $this->_paths[] = CAKE; - $this->_exclude = array_merge($this->_exclude, array( - CAKE . 'Test', - CAKE . 'Console' . DS . 'Templates' - )); - } - if (!empty($this->params['exclude-plugins']) && $this->_isExtractingApp()) { $this->_exclude = array_merge($this->_exclude, App::path('plugins')); } @@ -197,6 +189,14 @@ public function execute() { $this->_validationDomain = $this->params['validation-domain']; } + if ($this->_extractCore) { + $this->_paths[] = CAKE; + $this->_exclude = array_merge($this->_exclude, array( + CAKE . 'Test', + CAKE . 'Console' . DS . 'Templates' + )); + } + if (isset($this->params['output'])) { $this->_output = $this->params['output']; } elseif (isset($this->params['plugin'])) {