classes/phing/tasks/system/TempFile.php
public function main()
    {
        if ($this->property === '') {
            throw new BuildException('no property specified');
        }
        if ($this->destDir === null) {
            $this->destDir = $this->getProject()->resolveFile('.');
        }
        $fu = new FileUtils;
        $tmpFile = $fu->createTempFile(
            $this->prefix,
            $this->suffix,
            $this->destDir,
            $this->deleteOnExit,
            $this->createFile
        );
        $this->getProject()->setNewProperty($this->property, (string) $tmpFile);
    }
public function main()
    {
        if ($this->property === '') {
            throw new BuildException('no property specified');
        }
        if ($this->destDir === null) {
            $this->destDir = $this->getProject()->resolveFile('.');
        }
        $fu = new FileUtils;
        $tmpFile = $fu->createTempFile(
            $this->prefix,
            $this->suffix,
            $this->destDir,
            $this->deleteOnExit,
            $this->createFile
        );
        $this->getProject()->setNewProperty($this->property, (string) $tmpFile);
    }
public function main ( ) { if ( $ this -> property === '' ) { throw new BuildException ( 'no property specified' ) ; } if ( $ this -> destDir === null ) { $ this -> destDir = $ this -> getProject ( ) -> resolveFile ( '.' ) ; } $ fu = new FileUtils ; $ tmpFile = $ fu -> createTempFile ( $ this -> prefix , $ this -> suffix , $ this -> destDir , $ this -> deleteOnExit , $ this -> createFile ) ; $ this -> getProject ( ) -> setNewProperty ( $ this -> property , ( string ) $ tmpFile ) ; }
Creates the temporary file.

@throws BuildException if something goes wrong with the build
Creates the temporary file .