Class ScpFromMessage
java.lang.Object
org.apache.tools.ant.taskdefs.optional.ssh.AbstractSshMessage
org.apache.tools.ant.taskdefs.optional.ssh.ScpFromMessage
-
Constructor Summary
ConstructorDescriptionScpFromMessage
(boolean verbose, com.jcraft.jsch.Session session) Constructor for ScpFromMessageScpFromMessage
(boolean verbose, com.jcraft.jsch.Session session, String aRemoteFile, File aLocalFile, boolean recursive) Constructor for ScpFromMessage.ScpFromMessage
(boolean verbose, com.jcraft.jsch.Session session, String aRemoteFile, File aLocalFile, boolean recursive, boolean preserveLastModified) Constructor for ScpFromMessage.ScpFromMessage
(boolean verbose, com.jcraft.jsch.Session session, String aRemoteFile, File aLocalFile, boolean recursive, boolean preserveLastModified, boolean compressed) Constructor for ScpFromMessage.ScpFromMessage
(com.jcraft.jsch.Session session) Constructor for ScpFromMessageScpFromMessage
(com.jcraft.jsch.Session session, String aRemoteFile, File aLocalFile, boolean recursive) Constructor for ScpFromMessage. -
Method Summary
Methods inherited from class org.apache.tools.ant.taskdefs.optional.ssh.AbstractSshMessage
getCompressed, getProgressMonitor, getVerbose, log, logStats, openExecChannel, openSftpChannel, sendAck, setLogListener, trackProgress, waitForAck
-
Constructor Details
-
ScpFromMessage
public ScpFromMessage(com.jcraft.jsch.Session session) Constructor for ScpFromMessage- Parameters:
session
- the ssh session to use
-
ScpFromMessage
public ScpFromMessage(boolean verbose, com.jcraft.jsch.Session session) Constructor for ScpFromMessage- Parameters:
verbose
- if true do verbose loggingsession
- the ssh session to use- Since:
- Ant 1.7
-
ScpFromMessage
public ScpFromMessage(boolean verbose, com.jcraft.jsch.Session session, String aRemoteFile, File aLocalFile, boolean recursive) Constructor for ScpFromMessage.- Parameters:
verbose
- if true log extra informationsession
- the Scp session to useaRemoteFile
- the remote file nameaLocalFile
- the local filerecursive
- if true use recursion (-r option to scp)- Since:
- Ant 1.6.2
-
ScpFromMessage
public ScpFromMessage(com.jcraft.jsch.Session session, String aRemoteFile, File aLocalFile, boolean recursive) Constructor for ScpFromMessage.- Parameters:
session
- the Scp session to useaRemoteFile
- the remote file nameaLocalFile
- the local filerecursive
- if true use recursion (-r option to scp)
-
ScpFromMessage
public ScpFromMessage(boolean verbose, com.jcraft.jsch.Session session, String aRemoteFile, File aLocalFile, boolean recursive, boolean preserveLastModified) Constructor for ScpFromMessage.- Parameters:
verbose
- if true log extra informationsession
- the Scp session to useaRemoteFile
- the remote file nameaLocalFile
- the local filerecursive
- if true use recursion (-r option to scp)preserveLastModified
- whether to preserve file modification times- Since:
- Ant 1.8.0
-
ScpFromMessage
public ScpFromMessage(boolean verbose, com.jcraft.jsch.Session session, String aRemoteFile, File aLocalFile, boolean recursive, boolean preserveLastModified, boolean compressed) Constructor for ScpFromMessage.- Parameters:
verbose
- if true log extra informationsession
- the Scp session to useaRemoteFile
- the remote file nameaLocalFile
- the local filerecursive
- if true use recursion (-r option to scp)preserveLastModified
- whether to preserve filecompressed
- if true use compression (-C option to scp) modification times- Since:
- Ant 1.9.8
-
-
Method Details
-
execute
Carry out the transfer.- Specified by:
execute
in classAbstractSshMessage
- Throws:
IOException
- on i/o errorscom.jcraft.jsch.JSchException
- on errors detected by scp
-
getPreserveLastModified
protected boolean getPreserveLastModified()
-