Fix the problem when executing Phing out of the build dir.

Closes #778
Closes #748
This commit is contained in:
Àlex Corretgé 2015-02-03 13:19:33 +01:00 committed by Dan Cryer
commit 601318b97b

View file

@ -213,8 +213,12 @@ class Phing implements \PHPCI\Plugin
*/
public function propertiesToString()
{
if (empty($this->properties)) {
return '';
/**
* fix the problem when execute phing out of the build dir
* @ticket 748
*/
if (!isset($this->properties['project.basedir'])) {
$this->properties['project.basedir'] = $this->getDirectory();
}
$propertiesString = array();