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