From af832a5a9018c7dcc2f24111d82049902269fc53 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 18 Oct 2006 01:38:47 +0000 Subject: merge from 3.0 branch till 1463. --- buildscripts/phing/tasks/PradoDocTask.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'buildscripts/phing/tasks/PradoDocTask.php') diff --git a/buildscripts/phing/tasks/PradoDocTask.php b/buildscripts/phing/tasks/PradoDocTask.php index 3ab891bd..ac64ac5a 100644 --- a/buildscripts/phing/tasks/PradoDocTask.php +++ b/buildscripts/phing/tasks/PradoDocTask.php @@ -22,11 +22,18 @@ class PradoDocTask extends Task private $parseprivate = false; + private $quite = false; + function setPhpdoc($phpdoc) { $this->phpdoc=$phpdoc; } + function setQuite($quite) + { + $this->quite=$quite; + } + /** * Set the title for the generated documentation */ @@ -85,7 +92,7 @@ class PradoDocTask extends Task function main() { $arguments = $this->constructArguments(); - exec($this->phpdoc . " " . $arguments, $output, $retval); + passthru($this->phpdoc . " " . $arguments, $retval); } /** @@ -93,7 +100,12 @@ class PradoDocTask extends Task */ private function constructArguments() { - $arguments = "-q \"on\" "; + $arguments = " "; + + if($this->quite) + { + $arguments .= '-q "on" '; + } if ($this->title) { -- cgit v1.2.3