classes/phing/tasks/ext/RSTTask.php
public function setToolpath($path)
    {
        if (!file_exists($path)) {
            $fs = FileSystem::getFileSystem();
            $fullpath = $fs->which($path);
            if ($fullpath === false) {
                throw new BuildException(
                    'Tool does not exist. Path: ' . $path
                );
            }
            $path = $fullpath;
        }
        if (!is_executable($path)) {
            throw new BuildException(
                'Tool not executable. Path: ' . $path
            );
        }
        $this->toolPath = $path;
    }
public function setToolpath($path)
    {
        if (!file_exists($path)) {
            $fs = FileSystem::getFileSystem();
            $fullpath = $fs->which($path);
            if ($fullpath === false) {
                throw new BuildException(
                    'Tool does not exist. Path: ' . $path
                );
            }
            $path = $fullpath;
        }
        if (!is_executable($path)) {
            throw new BuildException(
                'Tool not executable. Path: ' . $path
            );
        }
        $this->toolPath = $path;
    }
public function setToolpath ( $ path ) { if ( ! file_exists ( $ path ) ) { $ fs = FileSystem :: getFileSystem ( ) ; $ fullpath = $ fs -> which ( $ path ) ; if ( $ fullpath === false ) { throw new BuildException ( 'Tool does not exist. Path: ' . $ path ) ; } $ path = $ fullpath ; } if ( ! is_executable ( $ path ) ) { throw new BuildException ( 'Tool not executable. Path: ' . $ path ) ; } $ this -> toolPath = $ path ; }
The setter for the attribute "toolpath"

@param    $path
@throws   BuildException
@internal param string $param Full path to tool path, i.e. /usr/local/bin/rst2html

@return void
The setter for the attribute toolpath