classes/phing/types/PatternSet.php
private function readFiles(Project $p)
    {
        if (!empty($this->includesFileList)) {
            foreach ($this->includesFileList as $ne) {
                $fileName = (string) $ne->evalName($p);
                if ($fileName !== null) {
                    $inclFile = $p->resolveFile($fileName);
                    if (!$inclFile->exists()) {
                        throw new BuildException("Includesfile " . $inclFile->getAbsolutePath() . " not found.");
                    }
                    $this->readPatterns($inclFile, $this->includeList, $p);
                }
            }
            $this->includesFileList = [];
        }

        if (!empty($this->excludesFileList)) {
            foreach ($this->excludesFileList as $ne) {
                $fileName = (string) $ne->evalName($p);
                if ($fileName !== null) {
                    $exclFile = $p->resolveFile($fileName);
                    if (!$exclFile->exists()) {
                        throw new BuildException("Excludesfile " . $exclFile->getAbsolutePath() . " not found.");
                    }
                    $this->readPatterns($exclFile, $this->excludeList, $p);
                }
            }
            $this->excludesFileList = [];
        }
    }
private function readFiles(Project $p)
    {
        if (!empty($this->includesFileList)) {
            foreach ($this->includesFileList as $ne) {
                $fileName = (string) $ne->evalName($p);
                if ($fileName !== null) {
                    $inclFile = $p->resolveFile($fileName);
                    if (!$inclFile->exists()) {
                        throw new BuildException("Includesfile " . $inclFile->getAbsolutePath() . " not found.");
                    }
                    $this->readPatterns($inclFile, $this->includeList, $p);
                }
            }
            $this->includesFileList = [];
        }

        if (!empty($this->excludesFileList)) {
            foreach ($this->excludesFileList as $ne) {
                $fileName = (string) $ne->evalName($p);
                if ($fileName !== null) {
                    $exclFile = $p->resolveFile($fileName);
                    if (!$exclFile->exists()) {
                        throw new BuildException("Excludesfile " . $exclFile->getAbsolutePath() . " not found.");
                    }
                    $this->readPatterns($exclFile, $this->excludeList, $p);
                }
            }
            $this->excludesFileList = [];
        }
    }
private function readFiles ( Project $ p ) { if ( ! empty ( $ this -> includesFileList ) ) { foreach ( $ this -> includesFileList as $ ne ) { $ fileName = ( string ) $ ne -> evalName ( $ p ) ; if ( $ fileName !== null ) { $ inclFile = $ p -> resolveFile ( $ fileName ) ; if ( ! $ inclFile -> exists ( ) ) { throw new BuildException ( "Includesfile " . $ inclFile -> getAbsolutePath ( ) . " not found." ) ; } $ this -> readPatterns ( $ inclFile , $ this -> includeList , $ p ) ; } } $ this -> includesFileList = [ ] ; } if ( ! empty ( $ this -> excludesFileList ) ) { foreach ( $ this -> excludesFileList as $ ne ) { $ fileName = ( string ) $ ne -> evalName ( $ p ) ; if ( $ fileName !== null ) { $ exclFile = $ p -> resolveFile ( $ fileName ) ; if ( ! $ exclFile -> exists ( ) ) { throw new BuildException ( "Excludesfile " . $ exclFile -> getAbsolutePath ( ) . " not found." ) ; } $ this -> readPatterns ( $ exclFile , $ this -> excludeList , $ p ) ; } } $ this -> excludesFileList = [ ] ; } }
Read includesfile or excludesfile if not already done so.

@param Project $p

@throws BuildException
Read includesfile or excludesfile if not already done so .