Permalink
Browse files

Merge pull request #294 from majna/2.0-extract-win

Fixing ignored '--exclude-plugins' option on Windows for Extract task.
  • Loading branch information...
2 parents 606c30b + 51ccbad commit e95d67571bd8b061cd29d75070b8d8b06c89c56b @markstory markstory committed Nov 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 e95d675

Please sign in to comment.