org.apache.tools.ant.taskdefs.optional.ssh
public class ScpToMessage extends AbstractSshMessage
Constructor Summary | |
---|---|
ScpToMessage(Session session)
Constructor for ScpToMessage | |
ScpToMessage(boolean verbose, Session session)
Constructor for ScpToMessage | |
ScpToMessage(boolean verbose, Session session, File aLocalFile, String aRemotePath)
Constructor for a local file to remote. | |
ScpToMessage(boolean verbose, Session session, List aDirectoryList, String aRemotePath)
Constructor for a local directories to remote. | |
ScpToMessage(Session session, File aLocalFile, String aRemotePath)
Constructor for ScpToMessage. | |
ScpToMessage(Session session, List aDirectoryList, String aRemotePath)
Constructor for ScpToMessage. |
Method Summary | |
---|---|
void | execute()
Carry out the transfer. |
File | getLocalFile()
Get the local file |
String | getRemotePath()
Get the remote path |
Parameters: session the ssh session to use
Parameters: verbose if true do verbose logging session the ssh session to use
Since: Ant 1.7
Parameters: verbose if true do verbose logging session the scp session to use aLocalFile the local file aRemotePath the remote path
Since: Ant 1.6.2
Parameters: verbose if true do verbose logging session the scp session to use aDirectoryList a list of directories aRemotePath the remote path
Since: Ant 1.6.2
Parameters: session the scp session to use aLocalFile the local file aRemotePath the remote path
Parameters: session the scp session to use aDirectoryList a list of directories aRemotePath the remote path
Throws: IOException on i/o errors JSchException on errors detected by scp
Returns: the local file
Returns: the remote path