From 2215f97afc196fb331d1634ff600c24d0eb51401 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 1 May 2011 18:30:23 +1200 Subject: [PATCH] MINOR Added "verbose" flag to SilverStripeBuildTask --- tools/SilverStripeBuildTask.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/SilverStripeBuildTask.php b/tools/SilverStripeBuildTask.php index 1d3f387..3ec0970 100644 --- a/tools/SilverStripeBuildTask.php +++ b/tools/SilverStripeBuildTask.php @@ -10,7 +10,13 @@ All code covered by the BSD license located at http://silverstripe.org/bsd-licen * @author marcus */ abstract class SilverStripeBuildTask extends Task { - protected $cleanupEnv = false; + + /** + * @var boolean + */ + protected $verbose = false; + + protected $cleanupEnv = false; protected function configureEnvFile() { // fake the _ss_environment.php file for the moment @@ -65,6 +71,9 @@ TEXT; function exec($cmd, $returnContent = false, $ignoreError = false) { $ret = null; $return = null; + + if($this->verbose) $this->log($cmd); + if ($returnContent) { $ret = shell_exec($cmd); } else {