Changeset 1514

Show
Ignore:
Timestamp:
04/06/08 17:46:48 (1 month ago)
Author:
mikey
Message:

fix check initializer task

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/org/stubbles/phing/tasks/stubCheckInitializersTask.php

    r1456 r1514  
    1111 */ 
    1212require_once 'phing/Task.php'; 
     13/** 
     14 * Uses stubbles star classes 
     15 */ 
     16require_once stubConfig::getSourcePath() . '/php/org/stubbles/star/StarException.php'; 
     17require_once stubConfig::getSourcePath() . '/php/org/stubbles/star/StarStreamWrapper.php'; 
     18StarStreamWrapper::register(); 
    1319/** 
    1420 * Task to check that initializers do not throw any exception. 
  • trunk/src/main/php/org/stubbles/star/StarClassRegistry.php

    r1238 r1514  
    156156                $path = str_replace('star://', '', str_replace('?org::stubbles::star::StarClassRegistry', '', __FILE__)); 
    157157                self::$libPathes[dirname($path)] = true; 
     158            } elseif (class_exists('stubConfig', false) === true) { 
     159                self::$libPathes[stubConfig::getLibPath()] = true; 
    158160            } else { 
    159161                self::$libPathes[realpath(getcwd() . '/../lib')] = true;