C.100 SvnSwitchTask

The SvnSwitchTask changes a local directory from one repository to another.

Table C.133: Attributes

NameTypeDescriptionDefaultRequired
svnpathStringPath to Subversion binary/usr/bin/svnNo
repositoryurlStringURL of remote repositorynoneYes
todirStringPath to the checked out projectnoneYes
usernameStringA username used to connect to the SVN servernoneNo
passwordStringA password used to connect to the SVN servernoneNo
nocacheBooleanConnection credentials will not be cachedfalseNo
depthStringLimit operation by depthempty, files, immediates or infinityNo
ignoreexternalsBooleanIgnore externals definitionsfalseNo
trustServerCertBooleanTrust self-signed certificatesfalseNo

C.100.1 Example

<svnswitch
   svnpath="/usr/bin/svn"
   username="anony"
   password="anony"
   nocache="true"
   repositoryurl="http://svn.phing.info/tags/2.4.2"
   todir="/home/user/svnwc"/>
<svnswitch
   svnpath="C:/Subversion/bin/svn.exe"
   repositoryurl="http://svn.phing.info/tags/2.4.2"
   todir="C:/projects/svnwc"/>