classes/phing/types/Path.php
public function addExisting(Path $source)
    {
        $list = $source->listPaths();
        foreach ($list as $el) {
            $f = null;
            if ($this->project !== null) {
                $f = $this->project->resolveFile($el);
            } else {
                $f = new PhingFile($el);
            }

            if ($f->exists()) {
                $this->setDir($f);
            } else {
                $this->log(
                    "dropping " . $f->__toString() . " from path as it doesn't exist",
                    Project::MSG_VERBOSE
                );
            }
        }
    }
public function addExisting(Path $source)
    {
        $list = $source->listPaths();
        foreach ($list as $el) {
            $f = null;
            if ($this->project !== null) {
                $f = $this->project->resolveFile($el);
            } else {
                $f = new PhingFile($el);
            }

            if ($f->exists()) {
                $this->setDir($f);
            } else {
                $this->log(
                    "dropping " . $f->__toString() . " from path as it doesn't exist",
                    Project::MSG_VERBOSE
                );
            }
        }
    }
public function addExisting ( Path $ source ) { $ list = $ source -> listPaths ( ) ; foreach ( $ list as $ el ) { $ f = null ; if ( $ this -> project !== null ) { $ f = $ this -> project -> resolveFile ( $ el ) ; } else { $ f = new PhingFile ( $ el ) ; } if ( $ f -> exists ( ) ) { $ this -> setDir ( $ f ) ; } else { $ this -> log ( "dropping " . $ f -> __toString ( ) . " from path as it doesn't exist" , Project :: MSG_VERBOSE ) ; } } }
Adds the components on the given path which exist to this
Path. Components that don't exist, aren't added.

@param Path $source - Source path whose components are examined for existence.

@return void
Adds the components on the given path which exist to this Path . Components that don t exist aren t added .