NAnt SDK Documentation - v0.92

ExportTask Class

Exports a cvs module in preperation for a release (i.e. the CVS version folders are not exported).

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

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

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

Export the most recent NAnt sources from cvs.

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

Export NAnt revision named your_favorite_revision_here to the folder c:\src\nant\replacement_for_module_directory_name. **NOTE**: filesets names for the export task must be prefixed with the module name. This is different than other tasks.

    
<cvs-export 
    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"
    recursive="false">
    <fileset>
        <include name="nant/bin/NAnt.exe"/>
        <include name="nant/bin/NAnt.exe.config"/>
    </fileset>
</cvs-export>
    
  

Requirements

Namespace: NAnt.SourceControl.Tasks

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

See Also

ExportTask Members | NAnt.SourceControl.Tasks Namespace