NAnt SDK Documentation - v0.92 |

# UpdateTask Class

Updates a CVS module in a local working directory.

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

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

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

#### Example

Update nant.

    <cvs-update
        destination="c:\src\nant\"
        cvsroot=":pserver:anonymous@cvs.sourceforge.net:/cvsroot/nant"
        password=""
        module="nant" />

Update your NAnt revision named `your_favorite_revision_here` in the folder `c:\src\nant\replacement_for_module_directory_name`.

    <cvs-update
        destination="c:\src\nant\"
        cvsroot=":pserver:anonymous@cvs.sourceforge.net:/cvsroot/nant"
        module="nant"
        revision="your_favorite_revision_here"
        overridedir="replacement_for_module_directory_name"
        usesharpcvslib="false">
        <fileset>
            <include name="build.number"/>
        </fileset>
    </cvs-update>

#### Requirements

Namespace: NAnt.SourceControl.Tasks

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

#### See Also

UpdateTask Members | NAnt.SourceControl.Tasks Namespace