Changeset 332

Show
Ignore:
Timestamp:
12/28/07 13:39:26 (6 months ago)
Author:
hans
Message:

Added exception throwing if logger doesn't implement BuildLogger interface

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.3/classes/phing/Phing.php

    r331 r332  
    638638                        $classname = self::import($this->loggerClassname); 
    639639                        $logger = new $classname; 
     640                        if (!($logger instanceof BuildLogger)) { 
     641                                throw new BuildException($classname . ' does not implement the BuildLogger interface.'); 
     642                        } 
    640643                } else { 
    641644                        require_once 'phing/listener/DefaultLogger.php';