SvnCopy Class

MSBuild

Copy a file or folder in Subversion


Namespace: MSBuild.Community.Tasks.Subversion
Assembly: MSBuild.Community.Tasks (in MSBuild.Community.Tasks.dll)

Syntax

Visual Basic (Declaration)
Public Class SvnCopy
    Inherits SvnClient
C#
public class SvnCopy : SvnClient
C++
ref class SvnCopy : SvnClient
J#
public class SvnCopy extends SvnClient
JScript
public class SvnCopy extends SvnClient

Example

Create a tag of the trunk with the current Cruise Control build number:

 Copy Code
            <Target Name="TagTheBuild">
              <SvnCopy SourcePath="file:///d:/svn/repo/Test/trunk"
                       DestinationPath="file:///d:/svn/repo/Test/tags/BUILD-$(CCNetLabel)" 
                       Message="Automatic build of $(CCNetProject)" />      
            </Target>
            

Remarks

This is most useful for automatically tagging your source code during a build. You can create a tag by copying a path from one server location to another.

Inheritance Hierarchy

System.Object
   Microsoft.Build.Utilities.Task
      Microsoft.Build.Utilities.ToolTask
         MSBuild.Community.Tasks.Subversion.SvnClient
            MSBuild.Community.Tasks.Subversion.SvnCopy

Thread Safety

Public static (Shared in Visual Basic)staticShared members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

See Also

Syntax based on .NET Framework version 2.0.
Documentation version 1.0.0.0.