classes/phing/tasks/ext/svn/SvnBaseTask.php
protected function run($args = [], $switches = [])
    {
        $tempArgs = array_merge($this->svnArgs, $args);
        $tempSwitches = array_merge($this->svnSwitches, $switches);

        if ($this->oldVersion) {
            $svnstack = PEAR_ErrorStack::singleton('VersionControl_SVN');

            if ($output = $this->svn->run($tempArgs, $tempSwitches)) {
                return $output;
            }

            if (count($errs = $svnstack->getErrors())) {
                $err = current($errs);
                $errorMessage = $err['message'];

                if (isset($err['params']['errstr'])) {
                    $errorMessage = $err['params']['errstr'];
                }

                throw new BuildException("Failed to run the 'svn " . $this->mode . "' command: " . $errorMessage);
            }
        } else {
            try {
                return $this->svn->run($tempArgs, $tempSwitches);
            } catch (Exception $e) {
                throw new BuildException("Failed to run the 'svn " . $this->mode . "' command: " . $e->getMessage());
            }
        }
    }
protected function run($args = [], $switches = [])
    {
        $tempArgs = array_merge($this->svnArgs, $args);
        $tempSwitches = array_merge($this->svnSwitches, $switches);

        if ($this->oldVersion) {
            $svnstack = PEAR_ErrorStack::singleton('VersionControl_SVN');

            if ($output = $this->svn->run($tempArgs, $tempSwitches)) {
                return $output;
            }

            if (count($errs = $svnstack->getErrors())) {
                $err = current($errs);
                $errorMessage = $err['message'];

                if (isset($err['params']['errstr'])) {
                    $errorMessage = $err['params']['errstr'];
                }

                throw new BuildException("Failed to run the 'svn " . $this->mode . "' command: " . $errorMessage);
            }
        } else {
            try {
                return $this->svn->run($tempArgs, $tempSwitches);
            } catch (Exception $e) {
                throw new BuildException("Failed to run the 'svn " . $this->mode . "' command: " . $e->getMessage());
            }
        }
    }
protected function run ( $ args = [ ] , $ switches = [ ] ) { $ tempArgs = array_merge ( $ this -> svnArgs , $ args ) ; $ tempSwitches = array_merge ( $ this -> svnSwitches , $ switches ) ; if ( $ this -> oldVersion ) { $ svnstack = PEAR_ErrorStack :: singleton ( 'VersionControl_SVN' ) ; if ( $ output = $ this -> svn -> run ( $ tempArgs , $ tempSwitches ) ) { return $ output ; } if ( count ( $ errs = $ svnstack -> getErrors ( ) ) ) { $ err = current ( $ errs ) ; $ errorMessage = $ err [ 'message' ] ; if ( isset ( $ err [ 'params' ] [ 'errstr' ] ) ) { $ errorMessage = $ err [ 'params' ] [ 'errstr' ] ; } throw new BuildException ( "Failed to run the 'svn " . $ this -> mode . "' command: " . $ errorMessage ) ; } } else { try { return $ this -> svn -> run ( $ tempArgs , $ tempSwitches ) ; } catch ( Exception $ e ) { throw new BuildException ( "Failed to run the 'svn " . $ this -> mode . "' command: " . $ e -> getMessage ( ) ) ; } } }
Executes the constructed VersionControl_SVN instance

@param    array $args
@param    array $switches
@throws   BuildException
@internal param Additional $array arguments to pass to SVN.
@internal param Switches $array to pass to SVN.
@return   string Output generated by SVN.
Executes the constructed VersionControl_SVN instance