NAnt SDK Documentation - v0.92

TagTask Class

Tags all local sources with the specified tag.

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

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

[Visual Basic]
<TaskName(Name:="cvs-tag")>
Public Class TagTask
    Inherits AbstractCvsTask
[C#]
[TaskName(Name="cvs-tag")]
public class TagTask : 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

This differs from the RTagTask in that it acts on references to the cvs files contained in your local filesystem. As such the sticky tags and local revisions can be considered in commits. It also allows you to verify that all local files have been checked in before a tag is performed.

Example

Tag NAnt sources remotely.

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

Remove a tag from the remote repository.

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

Requirements

Namespace: NAnt.SourceControl.Tasks

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

See Also

TagTask Members | NAnt.SourceControl.Tasks Namespace