ScpTask Class

Summary

Copies a file to a remote server using scp.
Assembly
NAnt.Contrib.dll
Namespace
NAnt.Contrib.Tasks
Base Types
  • ExternalProgramBase
graph BT Type-->Base0["ExternalProgramBase"] Type["ScpTask"] class Type type-node

Syntax

[TaskName("scp")]
public class ScpTask : ExternalProgramBase

Examples

Copy a single file to a remote server and path.

<scp file="myfile.zip" server="myServer" path="~" />

Remarks

Copies a file using scp to a remote server.

The Username Environment variable is used.

Attributes

Type Description
TaskName

Constructors

Name Summary
ScpTask()

Properties

Name Value Summary
BaseDirectory DirectoryInfo
The directory in which the command will be executed.
FileName string
The file to transfer.
Options string
The command line arguments.
ProgramArguments string
Gets the command-line arguments for the external program.
ProgramFileName string
Gets the filename of the external program to start.
ProgramName string
The program to execute. The default is "scp".
ProgramPathSep string
The path separator used by the program. The default is "/".
RemotePath string
The path on the remote server. The default is "~".
ServerName string
The server to send the file to.
UserName string
The username to connect as. The default is the value of the USERNAME environment variable.

Methods

Name Value Summary
ExecuteTask() void