Changeset 66

Show
Ignore:
Timestamp:
05/09/06 12:36:27 (2 years ago)
Author:
mrook
Message:

Fix erroneous message text

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.2/classes/phing/tasks/ext/phpdoc/PHPDocumentorTask.php

    r65 r66  
    3333{ 
    3434        /** 
    35          * The name of the executable for phpDocumentor 
     35         * The path to the executable for phpDocumentor 
    3636         */ 
    37         const PHPDOC = 'phpdoc'; 
     37        private $programPath = 'phpdoc'; 
    3838 
    3939        private $title = "Default Title"; 
     
    4848 
    4949        private $parseprivate = false; 
     50 
     51        /** 
     52         * Sets the path to the phpDocumentor executable 
     53         */ 
     54        function setProgramPath($programPath) 
     55        { 
     56                $this->programPath = $programPath; 
     57        } 
     58 
     59        /** 
     60         * Returns the path to the phpDocumentor executable 
     61         */ 
     62        function getProgramPath() 
     63        { 
     64                return $this->programPath; 
     65        } 
    5066 
    5167        /** 
     
    113129                $this->log("Running phpDocumentor..."); 
    114130 
    115                 exec(self::PHPDOC . " " . $arguments, $output, $return); 
     131                exec($this->programPath . " " . $arguments, $output, $return); 
    116132 
    117133                if ($return != 0) 
    118134                { 
    119                         throw new BuildException("Could not execute ionCube Encoder: " . implode(' ', $output)); 
     135                        throw new BuildException("Could not execute phpDocumentor: " . implode(' ', $output)); 
    120136                } 
    121137        }