|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.taskdefs.optional.ssh.AbstractSshMessage org.apache.tools.ant.taskdefs.optional.ssh.ScpFromMessage
public class ScpFromMessage
A helper object representing an scp download.
Constructor Summary | |
---|---|
ScpFromMessage(boolean verbose,
com.jcraft.jsch.Session session)
Constructor for ScpFromMessage |
|
ScpFromMessage(boolean verbose,
com.jcraft.jsch.Session session,
java.lang.String aRemoteFile,
java.io.File aLocalFile,
boolean recursive)
Constructor for ScpFromMessage. |
|
ScpFromMessage(com.jcraft.jsch.Session session)
Constructor for ScpFromMessage |
|
ScpFromMessage(com.jcraft.jsch.Session session,
java.lang.String aRemoteFile,
java.io.File aLocalFile,
boolean recursive)
Constructor for ScpFromMessage. |
Method Summary | |
---|---|
void |
execute()
Carry out the transfer. |
Methods inherited from class org.apache.tools.ant.taskdefs.optional.ssh.AbstractSshMessage |
---|
getProgressMonitor, getVerbose, log, logStats, openExecChannel, openSftpChannel, sendAck, setLogListener, trackProgress, waitForAck |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScpFromMessage(com.jcraft.jsch.Session session)
session
- the ssh session to usepublic ScpFromMessage(boolean verbose, com.jcraft.jsch.Session session)
verbose
- if true do verbose loggingsession
- the ssh session to usepublic ScpFromMessage(boolean verbose, com.jcraft.jsch.Session session, java.lang.String aRemoteFile, java.io.File aLocalFile, boolean recursive)
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)public ScpFromMessage(com.jcraft.jsch.Session session, java.lang.String aRemoteFile, java.io.File aLocalFile, boolean recursive)
session
- the Scp session to useaRemoteFile
- the remote file nameaLocalFile
- the local filerecursive
- if true use recursion (-r option to scp)Method Detail |
---|
public void execute() throws java.io.IOException, com.jcraft.jsch.JSchException
execute
in class AbstractSshMessage
java.io.IOException
- on i/o errors
com.jcraft.jsch.JSchException
- on errors detected by scp
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |