Permalink
Browse files

Fixing ignored '--exclude-plugins' option on Windows for Extract task.

  • Loading branch information...
1 parent 606c30b commit 51ccbad170074678870f6808cc744730a1a88ee6 @majna majna committed Nov 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Console/Command/Task/ExtractTask.php
View
2 lib/Cake/Console/Command/Task/ExtractTask.php
@@ -606,7 +606,7 @@ protected function _searchFiles() {
if (!empty($this->_exclude)) {
$exclude = array();
foreach ($this->_exclude as $e) {
- if ($e[0] !== DS) {
+ if (DS !== '\\' && $e[0] !== DS) {
$e = DS . $e;
}
$exclude[] = preg_quote($e, '/');

0 comments on commit 51ccbad

Please sign in to comment.