classes/phing/types/TokenSource.php
public function load()
    {
        // Create new Reader
        if ($this->classname === null) {
            throw new BuildException("No Classname given to TokenSource.");
        }

        $classname = Phing::import($this->classname);
        $this->reader = new $classname($this->project);

        // Configure Reader
        $this->configureTokenReader($this->reader);

        // Load Tokens
        try {
            while ($token = $this->reader->readToken()) {
                $this->tokens[] = $token;
            }
        } catch (BuildException $e) {
            $this->log("Error reading TokenSource: " . $e->getMessage(), Project::MSG_WARN);
        } catch (IOException $e) {
            $this->log("Error reading TokenSource: " . $e->getMessage(), Project::MSG_WARN);
        }
    }
public function load()
    {
        // Create new Reader
        if ($this->classname === null) {
            throw new BuildException("No Classname given to TokenSource.");
        }

        $classname = Phing::import($this->classname);
        $this->reader = new $classname($this->project);

        // Configure Reader
        $this->configureTokenReader($this->reader);

        // Load Tokens
        try {
            while ($token = $this->reader->readToken()) {
                $this->tokens[] = $token;
            }
        } catch (BuildException $e) {
            $this->log("Error reading TokenSource: " . $e->getMessage(), Project::MSG_WARN);
        } catch (IOException $e) {
            $this->log("Error reading TokenSource: " . $e->getMessage(), Project::MSG_WARN);
        }
    }
public function load ( ) { // Create new Reader if ( $ this -> classname === null ) { throw new BuildException ( "No Classname given to TokenSource." ) ; } $ classname = Phing :: import ( $ this -> classname ) ; $ this -> reader = new $ classname ( $ this -> project ) ; // Configure Reader $ this -> configureTokenReader ( $ this -> reader ) ; // Load Tokens try { while ( $ token = $ this -> reader -> readToken ( ) ) { $ this -> tokens [ ] = $ token ; } } catch ( BuildException $ e ) { $ this -> log ( "Error reading TokenSource: " . $ e -> getMessage ( ) , Project :: MSG_WARN ) ; } catch ( IOException $ e ) { $ this -> log ( "Error reading TokenSource: " . $ e -> getMessage ( ) , Project :: MSG_WARN ) ; } }
This method is called to load the sources from the reader
into the buffer of the source.
This method is called to load the sources from the reader into the buffer of the source .