org.apache.tools.ant.taskdefs.optional.ssh
public class Scp extends SSHBase
Since: Ant 1.6
Method Summary | |
---|---|
void | addFileset(FileSet set)
Adds a FileSet tranfer to remote host. |
void | execute()
Execute this task. |
void | init()
Initialize this task. |
void | setFile(String aFromUri)
Sets the file to be transferred. |
void | setLocalFile(String aFromUri)
Similiar to setFile but explicitly states that
the file is a local file. |
void | setLocalTodir(String aToUri)
Similiar to setTodir but explicitly states
that the directory is a local. |
void | setLocalTofile(String aToUri)
Changes the file name to the given name while receiving it,
only useful if receiving a single file. |
void | setPreservelastmodified(boolean yesOrNo)
Sets flag to determine if file timestamp from
remote system is to be preserved during copy. |
void | setRemoteFile(String aFromUri)
Similiar to setFile but explicitly states that
the file is a remote file. |
void | setRemoteTodir(String aToUri)
Similiar to setTodir but explicitly states
that the directory is a remote. |
void | setRemoteTofile(String aToUri)
Changes the file name to the given name while sending it,
only useful if sending a single file. |
void | setSftp(boolean yesOrNo)
Setting this to true to use sftp protocol.
|
void | setTodir(String aToUri)
Sets the location where files will be transferred to.
|
Parameters: set FileSet to send to remote host.
Throws: BuildException on error
Throws: BuildException on error
Parameters: aFromUri a string representing the file to transfer.
setFile
but explicitly states that
the file is a local file. This is the only way to specify a
local file with a @ character.Parameters: aFromUri a string representing the source of the copy.
Since: Ant 1.6.2
setTodir
but explicitly states
that the directory is a local. This is the only way to specify
a local directory with a @ character.Parameters: aToUri a string representing the target of the copy.
Since: Ant 1.6.2
Parameters: aToUri a string representing the target of the copy.
Since: Ant 1.6.2
Since: Ant 1.8.0
setFile
but explicitly states that
the file is a remote file.Parameters: aFromUri a string representing the source of the copy.
Since: Ant 1.6.2
setTodir
but explicitly states
that the directory is a remote.Parameters: aToUri a string representing the target of the copy.
Since: Ant 1.6.2
Parameters: aToUri a string representing the target of the copy.
Since: Ant 1.6.2
Parameters: yesOrNo if true sftp protocol will be used.
Parameters: aToUri a string representing the target of the copy.