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

Fixing ignored '--exclude-plugins' option on Windows for Extract task.
This commit is contained in:
Mark Story 2011-11-03 14:59:50 -07:00
commit e95d67571b

View file

@ -606,7 +606,7 @@ class ExtractTask extends Shell {
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, '/');