classes/phing/tasks/system/ApplyTask.php
public function getFilePath($filename, $basedir, $relative)
    {
        // Validating the 'file' information
        $files = (array) $filename;

        // Processing the file information
        foreach ($files as $index => $file) {
            $absolutefilename = (($relative === false) ? ($basedir . PhingFile::$separator) : '');
            $absolutefilename .= $file;
            if ($relative === false) {
                $files[$index] = (new FileUtils())->normalize($absolutefilename);
            } else {
                $files[$index] = $absolutefilename;
            }
        }

        return (is_array($filename) ? $files : $files[0]);
    }
public function getFilePath($filename, $basedir, $relative)
    {
        // Validating the 'file' information
        $files = (array) $filename;

        // Processing the file information
        foreach ($files as $index => $file) {
            $absolutefilename = (($relative === false) ? ($basedir . PhingFile::$separator) : '');
            $absolutefilename .= $file;
            if ($relative === false) {
                $files[$index] = (new FileUtils())->normalize($absolutefilename);
            } else {
                $files[$index] = $absolutefilename;
            }
        }

        return (is_array($filename) ? $files : $files[0]);
    }
public function getFilePath ( $ filename , $ basedir , $ relative ) { // Validating the 'file' information $ files = ( array ) $ filename ; // Processing the file information foreach ( $ files as $ index => $ file ) { $ absolutefilename = ( ( $ relative === false ) ? ( $ basedir . PhingFile :: $ separator ) : '' ) ; $ absolutefilename .= $ file ; if ( $ relative === false ) { $ files [ $ index ] = ( new FileUtils ( ) ) -> normalize ( $ absolutefilename ) ; } else { $ files [ $ index ] = $ absolutefilename ; } } return ( is_array ( $ filename ) ? $ files : $ files [ 0 ] ) ; }
Prepares the filename per base directory and relative path information

@param array|string $filename
@param $basedir
@param $relative

@return mixed processed filenames

@throws IOException
Prepares the filename per base directory and relative path information