SvnAliases.

SvnExport(ICakeContext, Uri, DirectoryPath, SvnExportSettings) Method

Summary

Export a Subversion directory tree with specific settings.
Assembly
Cake.Svn.dll
Namespace
Cake.Svn
Containing Type
SvnAliases

Syntax

public static SvnExportResult SvnExport(this ICakeContext context, Uri repositoryUrl, DirectoryPath path, SvnExportSettings settings)

Examples

Export root files from a SVN repository while overwriting files in the target location and output revision ID:

 var settings =
         new SvnExportSettings 
         { 
             Overwrite = true,
             Depth = SvnDepth.Files 
         };
         
     var result = SvnExport(
         new Uri("https://svn.example.com"),
         @"c:\repo",
         settings);

     Verbose("Revision: {0}", result.Revision);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext The Cake context.
repositoryUrl Uri The URL of the Subversion repository.
path DirectoryPath The local directory name.
settings SvnExportSettings The settings.

Return Value

Type Description
SvnExportResult Result of the export operation.