summaryrefslogtreecommitdiff
path: root/buildscripts/phing/tasks/PradoDocTask.php
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/phing/tasks/PradoDocTask.php')
-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)
{