classes/phing/tasks/ext/property/Variable.php
protected function loadFile(PhingFile $file)
    {
        $props = new Properties();
        try {
            if ($file->exists()) {
                $props->load($file);

                $this->addProperties($props);
            } else {
                $this->log(
                    'Unable to find property file: ' . $file->getAbsolutePath(),
                    Project::MSG_VERBOSE
                );
            }
        } catch (IOException $ex) {
            throw new BuildException($ex, $this->getLocation());
        }
    }
protected function loadFile(PhingFile $file)
    {
        $props = new Properties();
        try {
            if ($file->exists()) {
                $props->load($file);

                $this->addProperties($props);
            } else {
                $this->log(
                    'Unable to find property file: ' . $file->getAbsolutePath(),
                    Project::MSG_VERBOSE
                );
            }
        } catch (IOException $ex) {
            throw new BuildException($ex, $this->getLocation());
        }
    }
protected function loadFile ( PhingFile $ file ) { $ props = new Properties ( ) ; try { if ( $ file -> exists ( ) ) { $ props -> load ( $ file ) ; $ this -> addProperties ( $ props ) ; } else { $ this -> log ( 'Unable to find property file: ' . $ file -> getAbsolutePath ( ) , Project :: MSG_VERBOSE ) ; } } catch ( IOException $ ex ) { throw new BuildException ( $ ex , $ this -> getLocation ( ) ) ; } }
load variables from a file

@param  PhingFile $file file to load
@throws BuildException
load variables from a file