Skip to content

Commit

Permalink
Merge pull request cakephp#1166 from ceeram/2.3-3442
Browse files Browse the repository at this point in the history
add CAKE to the paths after handling parameters that depend on _isExtrac...
  • Loading branch information
ceeram committed Mar 4, 2013
2 parents e3b870d + e2ebeef commit 6d821e8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/Cake/Console/Command/Task/ExtractTask.php
Expand Up @@ -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'));
}
Expand All @@ -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'])) {
Expand Down

0 comments on commit 6d821e8

Please sign in to comment.