From 601318b97b036f96d475f624ebcd3c204443773d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?A=CC=80lex=20Corretge=CC=81?= Date: Tue, 3 Feb 2015 13:19:33 +0100 Subject: [PATCH] Fix the problem when executing Phing out of the build dir. Closes #778 Closes #748 --- PHPCI/Plugin/Phing.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/PHPCI/Plugin/Phing.php b/PHPCI/Plugin/Phing.php index ae86968b..2bf64cca 100644 --- a/PHPCI/Plugin/Phing.php +++ b/PHPCI/Plugin/Phing.php @@ -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();