Changeset 238

Show
Ignore:
Timestamp:
09/10/07 15:14:23 (10 months ago)
Author:
mrook
Message:

Add 'recursive' attribute (closes issue #141)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/classes/phing/tasks/ext/svn/SvnBaseTask.php

    r227 r238  
    198198                return isset( $this->svnSwitches['no-auth-cache'] ) ? $this->svnSwitches['no-auth-cache'] : ''; 
    199199        } 
    200  
     200         
     201        /** 
     202         * Toggles recursive behavior 
     203         */ 
     204        function setRecursive($value) 
     205        { 
     206                $this->svnSwitches['non-recursive'] = is_bool($value) ? !$value : TRUE; 
     207        } 
     208         
     209        /** 
     210         * Returns status of recursive behavior 
     211         */ 
     212        function getRecursive() 
     213        { 
     214                return isset( $this->svnSwitches['non-recursive'] ) ? $this->svnSwitches['non-recursive'] : ''; 
     215        } 
     216         
    201217        /** 
    202218         * Creates a VersionControl_SVN class based on $mode