classes/phing/tasks/ext/PatchTask.php
public function setPatchFile(PhingFile $file)
    {
        if (!$file->exists()) {
            throw new BuildException('patchfile ' . $file . " doesn't exist", $this->getLocation());
        }
        $this->cmd->createArgument()->setValue('-i');
        $this->cmd->createArgument()->setFile($file);
        $this->havePatchFile = true;
    }
public function setPatchFile(PhingFile $file)
    {
        if (!$file->exists()) {
            throw new BuildException('patchfile ' . $file . " doesn't exist", $this->getLocation());
        }
        $this->cmd->createArgument()->setValue('-i');
        $this->cmd->createArgument()->setFile($file);
        $this->havePatchFile = true;
    }
public function setPatchFile ( PhingFile $ file ) { if ( ! $ file -> exists ( ) ) { throw new BuildException ( 'patchfile ' . $ file . " doesn't exist" , $ this -> getLocation ( ) ) ; } $ this -> cmd -> createArgument ( ) -> setValue ( '-i' ) ; $ this -> cmd -> createArgument ( ) -> setFile ( $ file ) ; $ this -> havePatchFile = true ; }
The file containing the diff output

Required.

@param  PhingFile $file File containing the diff output
@return void
@throws BuildException if $file not exists
The file containing the diff output