🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# C.100 SvnSwitchTask The `SvnSwitchTask` changes a local directory from one repository to another. Table C.133:聽Attributes NameTypeDescriptionDefaultRequired`svnpath``String`Path to Subversion binary/usr/bin/svnNo`repositoryurl``String`URL of remote repositorynoneYes`todir``String`Path to the checked out projectnoneYes`username``String`A username used to connect to the SVN servernoneNo`password``String`A password used to connect to the SVN servernoneNo`nocache``Boolean`Connection credentials will not be cached`false`No`depth``String`Limit operation by depth`empty`, `files`, `immediates` or `infinity`No`ignoreexternals``Boolean`Ignore externals definitions`false`No`trustServerCert``Boolean`Trust self-signed certificates`false`No 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"/> ```