summaryrefslogtreecommitdiff
path: root/buildscripts/phing
diff options
context:
space:
mode:
authorxue <>2006-10-18 01:38:47 +0000
committerxue <>2006-10-18 01:38:47 +0000
commitaf832a5a9018c7dcc2f24111d82049902269fc53 (patch)
treeb66193de9e7b75c916a92d6c951a22a90d85fed6 /buildscripts/phing
parent459bb9c618a8f2897da22129167e634589435e38 (diff)
merge from 3.0 branch till 1463.
Diffstat (limited to 'buildscripts/phing')
-rw-r--r--buildscripts/phing/tasks/PradoDocTask.php16
1 files changed, 14 insertions, 2 deletions
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)
{