| java.lang.Object org.apache.tools.ant.taskdefs.optional.ssh.AbstractSshMessage org.apache.tools.ant.taskdefs.optional.ssh.ScpFromMessage
All known Subclasses: org.apache.tools.ant.taskdefs.optional.ssh.ScpFromMessageBySftp,
ScpFromMessage | public class ScpFromMessage extends AbstractSshMessage (Code) | | A helper object representing an scp download.
|
Constructor Summary | |
public | ScpFromMessage(Session session) | public | ScpFromMessage(boolean verbose, Session session) | public | ScpFromMessage(boolean verbose, Session session, String aRemoteFile, File aLocalFile, boolean recursive) Constructor for ScpFromMessage. | public | ScpFromMessage(Session session, String aRemoteFile, File aLocalFile, boolean recursive) Constructor for ScpFromMessage. |
Method Summary | |
public void | execute() Carry out the transfer. |
ScpFromMessage | public ScpFromMessage(Session session)(Code) | | Constructor for ScpFromMessage
Parameters: session - the ssh session to use |
ScpFromMessage | public ScpFromMessage(boolean verbose, Session session)(Code) | | Constructor for ScpFromMessage
Parameters: verbose - if true do verbose logging Parameters: session - the ssh session to use since: Ant 1.7 |
ScpFromMessage | public ScpFromMessage(boolean verbose, Session session, String aRemoteFile, File aLocalFile, boolean recursive)(Code) | | Constructor for ScpFromMessage.
Parameters: verbose - if true log extra information Parameters: session - the Scp session to use Parameters: aRemoteFile - the remote file name Parameters: aLocalFile - the local file Parameters: recursive - if true use recursion (-r option to scp) since: Ant 1.6.2 |
ScpFromMessage | public ScpFromMessage(Session session, String aRemoteFile, File aLocalFile, boolean recursive)(Code) | | Constructor for ScpFromMessage.
Parameters: session - the Scp session to use Parameters: aRemoteFile - the remote file name Parameters: aLocalFile - the local file Parameters: recursive - if true use recursion (-r option to scp) |
execute | public void execute() throws IOException, JSchException(Code) | | Carry out the transfer.
throws: IOException - on i/o errors throws: JSchException - on errors detected by scp |
|
|