classes/phing/tasks/system/condition/IsFileSelected.php
public function evaluate()
    {
        if ($this->file === null) {
            throw new BuildException('file attribute not set');
        }
        $this->validate();
        $myBaseDir = $this->baseDir;
        if ($myBaseDir === null) {
            $myBaseDir = $this->getProject()->getBaseDir();
        }

        /**
         * @var FileSelector $f
         */
        $file = $this->getSelectors($this->getProject());
        $f = $file[0];
        return $f->isSelected($myBaseDir, $this->file->getName(), $this->file);
    }
public function evaluate()
    {
        if ($this->file === null) {
            throw new BuildException('file attribute not set');
        }
        $this->validate();
        $myBaseDir = $this->baseDir;
        if ($myBaseDir === null) {
            $myBaseDir = $this->getProject()->getBaseDir();
        }

        /**
         * @var FileSelector $f
         */
        $file = $this->getSelectors($this->getProject());
        $f = $file[0];
        return $f->isSelected($myBaseDir, $this->file->getName(), $this->file);
    }
public function evaluate ( ) { if ( $ this -> file === null ) { throw new BuildException ( 'file attribute not set' ) ; } $ this -> validate ( ) ; $ myBaseDir = $ this -> baseDir ; if ( $ myBaseDir === null ) { $ myBaseDir = $ this -> getProject ( ) -> getBaseDir ( ) ; } /**
         * @var FileSelector $f
         */ $ file = $ this -> getSelectors ( $ this -> getProject ( ) ) ; $ f = $ file [ 0 ] ; return $ f -> isSelected ( $ myBaseDir , $ this -> file -> getName ( ) , $ this -> file ) ; }
Evaluate the selector with the file.

@return true if the file is selected by the embedded selector.
Evaluate the selector with the file .