Changeset 311

Show
Ignore:
Timestamp:
11/17/07 02:30:23 (8 months ago)
Author:
hans
Message:

Refs #188 - Moving some classes (File, BuildLogger, etc.)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/classes/phing/IntrospectionHelper.php

    r307 r311  
    2222namespace phing; 
    2323use phing::util::StringHelper; 
    24  
     24use phing::types::Path; 
    2525 
    2626/** 
  • trunk/classes/phing/filters/TidyFilter.php

    r309 r311  
    9696    function read($len = null) { 
    9797         
    98                 if (!class_exists('Tidy')) { 
     98                if (!class_exists('Tidy', false)) { 
    9999                        throw new BuildException("You must enable the 'tidy' extension in your PHP configuration in order to use the Tidy filter."); 
    100100                } 
  • trunk/classes/phing/filters/XincludeFilter.php

    r310 r311  
    5757    function read($len = null) { 
    5858         
    59         if (!class_exists('DomDocument')) { 
     59        if (!class_exists('DomDocument', false)) { 
    6060            throw new BuildException("Could not find the DomDocument class. Make sure PHP has been compiled/configured to support DOM XML."); 
    6161        } 
  • trunk/classes/phing/filters/XsltFilter.php

    r310 r311  
    130130    function read($len = null) { 
    131131         
    132         if (!class_exists('XSLTProcessor')) { 
     132        if (!class_exists('XSLTProcessor', false)) { 
    133133            throw new BuildException("Could not find the XSLTProcessor class. Make sure PHP has been compiled/configured to support XSLT."); 
    134134        } 
  • trunk/classes/phing/listener/BuildListener.php

    r123 r311  
    1919 * <http://phing.info>. 
    2020 */ 
     21 
     22namespace phing::listener; 
     23use phing::BuildEvent; 
    2124 
    2225/** 
  • trunk/classes/phing/listener/BuildLogger.php

    r147 r311  
    2020 */ 
    2121 
    22 require_once 'phing/BuildListener.php'; 
     22namespace phing::listener; 
     23use phing::system::io::OutputStream; 
    2324 
    2425/** 
  • trunk/classes/phing/listener/PearLogListener.php

    r309 r311  
    9494         
    9595        include_once 'Log.php'; 
    96         if (!class_exists('Log')) { 
     96        if (!class_exists('Log', false)) { 
    9797                throw new BuildException("Cannot find PEAR Log class for use by PearLogger."); 
    9898        } 
  • trunk/classes/phing/parser/AbstractSAXParser.php

    r309 r311  
    2222namespace phing::parser; 
    2323use phing::BuildException; 
     24use phing::Phing; 
    2425 
    2526/** 
  • trunk/classes/phing/system/io/File.php

    r262 r311  
    2020 */ 
    2121 
    22 include_once 'phing/system/io/FileSystem.php'; 
    23 include_once 'phing/system/lang/NullPointerException.php'; 
     22namespace phing::system::io; 
     23use phing::system::io::FileSystem; 
     24use phing::system::lang::NullPointerException; 
    2425 
    2526/** 
    26  * An abstract representation of file and directory pathnames. 
     27 * An representation of file and directory pathnames. 
    2728 * 
    28  * @version   $Revision: 1.1 $ 
    2929 * @package   phing.system.io 
    3030 */ 
    31 class PhingFile { 
     31class File { 
    3232 
    3333    /** separator string, static, obtained from FileSystem */ 
  • trunk/classes/phing/tasks/ext/creole/CreoleTask.php

    r309 r311  
    8888    function init() { 
    8989        include_once 'creole/Creole.php'; 
    90         if (!class_exists('Creole')) { 
     90        if (!class_exists('Creole', false)) { 
    9191            throw new Exception("Creole task depends on Creole classes being on include_path. (i.e. include of 'creole/Creole.php' failed.)"); 
    9292        } 
  • trunk/classes/phing/tasks/ext/pdo/PDOTask.php

    r309 r311  
    7373     */ 
    7474    function init() { 
    75         if (!class_exists('PDO')) { 
     75        if (!class_exists('PDO', false)) { 
    7676            throw new Exception("PDOTask depends on PDO feature being included in PHP."); 
    7777        } 
  • trunk/classes/phing/tasks/ext/phpdoc/PhpDocumentorTask.php

    r310 r311  
    281281                set_include_path(get_include_path() . PATH_SEPARATOR . $found); 
    282282                include_once ("phpDocumentor/Setup.inc.php"); 
    283                 if (!class_exists('phpDocumentor_setup')) { 
     283                if (!class_exists('phpDocumentor_setup', false)) { 
    284284                        throw new BuildException("Error including PhpDocumentor setup class file."); 
    285285                } 
  • trunk/classes/phing/tasks/ext/phpunit/PHPUnitTask.php

    r309 r311  
    6767                @include_once 'PHPUnit2/Runner/Version.php'; 
    6868 
    69                 if (class_exists('PHPUnit_Runner_Version')) 
    70                 { 
     69                if (class_exists('PHPUnit_Runner_Version', false)) 
     70                {  
    7171                        $version = PHPUnit_Runner_Version::id(); 
    7272                } 
    73                 elseif (class_exists('PHPUnit2_Runner_Version')) 
     73                elseif (class_exists('PHPUnit2_Runner_Version', false)) 
    7474                { 
    7575                        $version = PHPUnit2_Runner_Version::id(); 
  • trunk/classes/phing/types/Path.php

    r310 r311  
    2525use phing::Project; 
    2626use phing::sytem::io::File; 
     27use phing::util::PathTokenizer; 
    2728 
    2829/**