NAnt SDK Documentation - v0.92

RTagTask Class

Tags all sources in the remote repository with a given tag.

For a list of all members of this type, see RTagTask Members.

System.Object
   NAnt.Core.Element
      NAnt.Core.Task
         NAnt.Core.Tasks.ExternalProgramBase
            NAnt.SourceControl.Tasks.AbstractSourceControlTask
               NAnt.SourceControl.Tasks.AbstractCvsTask
                  NAnt.SourceControl.Tasks.RTagTask

[Visual Basic]
<TaskName(Name:="cvs-rtag")>
Public Class RTagTask
    Inherits AbstractCvsTask
[C#]
[TaskName(Name="cvs-rtag")]
public class RTagTask : AbstractCvsTask

Thread Safety

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

Remarks

Unlike tag, the rtag command acts only on sources that are in the repository. Any modified sources on the local file system will NOT be tagged with this command, so a commit should be performed before an rtag is done.

NOTE: Although a working directory is not necessary to perform the command one must be specified in order to remain in compliance with the cvs library.

Example

Tag NAnt sources remotely.

    
<cvs-rtag 
    cvsroot=":pserver:anonymous@cvs.sourceforge.net:/cvsroot/nant" 
    destination="."
    tag="v0_8_4"
     />
    
  

Remove a tag from the remote repository.

    
<cvs-rtag 
    cvsroot=":pserver:anonymous@cvs.sourceforge.net:/cvsroot/nant" 
    destination="."
    tag="v0_8_4"
    remove="true"
     />
    
  

Requirements

Namespace: NAnt.SourceControl.Tasks

Assembly: NAnt.SourceControlTasks (in NAnt.SourceControlTasks.dll)

See Also

RTagTask Members | NAnt.SourceControl.Tasks Namespace