classes/phing/tasks/ext/sass/SassTask.php
public function processFile(SassTaskCompiler $compiler)
    {
        $this->log("Process file", Project::MSG_INFO);
        if (null === $this->output) {
            $specifiedOutputPath = (strlen($this->outputpath) > 0);
            if ($specifiedOutputPath === false) {
                $info = pathinfo($this->file);
                $path = $info['dirname'];
                $this->outputpath = $path;
            } else {
                $path = $this->outputpath;
            }
            $output = $path . DIRECTORY_SEPARATOR . $info['filename'];
            if (!$this->removeoldext) {
                $output .= '.' . $this->pathInfo['extension'];
            }

            if (strlen($this->newext) > 0) {
                $output .= '.' . $this->newext;
            }
            $this->output = $output;
        } else {
            $output = $this->output;
        }

        $compiler->compile($this->file, $output, $this->failonerror);
    }
public function processFile(SassTaskCompiler $compiler)
    {
        $this->log("Process file", Project::MSG_INFO);
        if (null === $this->output) {
            $specifiedOutputPath = (strlen($this->outputpath) > 0);
            if ($specifiedOutputPath === false) {
                $info = pathinfo($this->file);
                $path = $info['dirname'];
                $this->outputpath = $path;
            } else {
                $path = $this->outputpath;
            }
            $output = $path . DIRECTORY_SEPARATOR . $info['filename'];
            if (!$this->removeoldext) {
                $output .= '.' . $this->pathInfo['extension'];
            }

            if (strlen($this->newext) > 0) {
                $output .= '.' . $this->newext;
            }
            $this->output = $output;
        } else {
            $output = $this->output;
        }

        $compiler->compile($this->file, $output, $this->failonerror);
    }
public function processFile ( SassTaskCompiler $ compiler ) { $ this -> log ( "Process file" , Project :: MSG_INFO ) ; if ( null === $ this -> output ) { $ specifiedOutputPath = ( strlen ( $ this -> outputpath ) > 0 ) ; if ( $ specifiedOutputPath === false ) { $ info = pathinfo ( $ this -> file ) ; $ path = $ info [ 'dirname' ] ; $ this -> outputpath = $ path ; } else { $ path = $ this -> outputpath ; } $ output = $ path . DIRECTORY_SEPARATOR . $ info [ 'filename' ] ; if ( ! $ this -> removeoldext ) { $ output .= '.' . $ this -> pathInfo [ 'extension' ] ; } if ( strlen ( $ this -> newext ) > 0 ) { $ output .= '.' . $ this -> newext ; } $ this -> output = $ output ; } else { $ output = $ this -> output ; } $ compiler -> compile ( $ this -> file , $ output , $ this -> failonerror ) ; }
Compile a specified file.

If output file is not specified, but outputpath is, place output in
that directory. If neither is specified, place .css file in the
directory that the input file is in.

@param SassTaskCompiler $compiler Compiler to use for processing fileset

@return void
Compile a specified file .