| java.lang.Object org.apache.tools.ant.taskdefs.optional.ssh.AbstractSshMessage org.apache.tools.ant.taskdefs.optional.ssh.ScpToMessage org.apache.tools.ant.taskdefs.optional.ssh.ScpToMessageBySftp
ScpToMessageBySftp | public class ScpToMessageBySftp extends ScpToMessage (Code) | | Utility class to carry out an upload by sftp.
|
Constructor Summary | |
public | ScpToMessageBySftp(boolean verbose, Session session, File aLocalFile, String aRemotePath) Constructor for a local file to remote. | public | ScpToMessageBySftp(boolean verbose, Session session, List aDirectoryList, String aRemotePath) Constructor for a local directories to remote. | public | ScpToMessageBySftp(Session session, File aLocalFile, String aRemotePath) Constructor for ScpToMessage. | public | ScpToMessageBySftp(Session session, List aDirectoryList, String aRemotePath) Constructor for ScpToMessage. |
ScpToMessageBySftp | public ScpToMessageBySftp(boolean verbose, Session session, File aLocalFile, String aRemotePath)(Code) | | Constructor for a local file to remote.
Parameters: verbose - if true do verbose logging Parameters: session - the scp session to use Parameters: aLocalFile - the local file Parameters: aRemotePath - the remote path since: Ant 1.7 |
ScpToMessageBySftp | public ScpToMessageBySftp(boolean verbose, Session session, List aDirectoryList, String aRemotePath)(Code) | | Constructor for a local directories to remote.
Parameters: verbose - if true do verbose logging Parameters: session - the scp session to use Parameters: aDirectoryList - a list of directories Parameters: aRemotePath - the remote path since: Ant 1.7 |
ScpToMessageBySftp | public ScpToMessageBySftp(Session session, File aLocalFile, String aRemotePath)(Code) | | Constructor for ScpToMessage.
Parameters: session - the scp session to use Parameters: aLocalFile - the local file Parameters: aRemotePath - the remote path |
ScpToMessageBySftp | public ScpToMessageBySftp(Session session, List aDirectoryList, String aRemotePath)(Code) | | Constructor for ScpToMessage.
Parameters: session - the scp session to use Parameters: aDirectoryList - a list of directories Parameters: aRemotePath - the remote path |
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 |
getLocalFile | public File getLocalFile()(Code) | | Get the local file.
the local file. |
getRemotePath | public String getRemotePath()(Code) | | Get the remote path.
the remote path. |
|
|