Changeset 84

Show
Ignore:
Timestamp:
07/10/06 12:30:51 (2 years ago)
Author:
mrook
Message:

Double-quote path arguments, add some logging

Files:

Legend:

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

    r82 r84  
    135135                        throw new BuildException("Could not execute phpDocumentor: " . implode(' ', $output)); 
    136136                } 
     137                 
     138                foreach($output as $line) 
     139                { 
     140                        if(strpos($line, 'ERROR') !== false) 
     141                        { 
     142                                $this->log($line, PROJECT_MSG_ERR); 
     143                                continue; 
     144                        } 
     145                         
     146                        $this->log($line, PROJECT_MSG_VERBOSE); 
     147                } 
    137148        } 
    138149 
     
    151162                if ($this->destdir) 
    152163                { 
    153                         $arguments.= "-t " . $this->destdir . " "; 
     164                        $arguments.= "-t \"" . $this->destdir . "\" "; 
    154165                } 
    155166 
    156167                if ($this->sourcepath !== NULL) 
    157168                { 
    158                         $arguments.= "-d " . $this->sourcepath->__toString() . " "; 
     169                        $arguments.= "-d \"" . $this->sourcepath->__toString() . "\" "; 
    159170                } 
    160171