This commit is contained in:
Dmitry Khomutov 2014-05-09 23:55:13 +07:00
parent 1f64450831
commit a6cbd7cad8
2 changed files with 5 additions and 1 deletions

View file

@ -118,7 +118,7 @@ class Builder implements LoggerAwareInterface
$this->pluginExecutor = new Plugin\Util\Executor($pluginFactory, $this->buildLogger);
$executorClass = 'PHPCI\Helper\UnixCommandExecutor';
if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') {
if (IS_WIN) {
$executorClass = 'PHPCI\Helper\WindowsCommandExecutor';
}

View file

@ -25,3 +25,7 @@ if (!defined('ENABLE_SHELL_PLUGIN')) {
if (!defined('PHPCI_IS_CONSOLE')) {
define('PHPCI_IS_CONSOLE', false);
}
if (!defined('IS_WIN')) {
define('IS_WIN', ((strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') ? true : false));
}