org.apache.tools.ant.taskdefs.optional.ssh
public class SSHSession extends SSHBase
Since: Ant 1.8.0
Nested Class Summary | |
---|---|
class | SSHSession.LocalTunnel |
static class | SSHSession.NestedSequential
The class corresponding to the sequential nested element.
|
class | SSHSession.RemoteTunnel |
Method Summary | |
---|---|
void | addTask(Task nestedTask)
Add a nested task to Sequential.
|
SSHSession.LocalTunnel | createLocalTunnel() |
SSHSession.RemoteTunnel | createRemoteTunnel() |
SSHSession.NestedSequential | createSequential()
This is the sequential nested element of the macrodef.
|
void | execute()
Establish the ssh session and execute all nestedTasks
|
void | setLocaltunnels(String tunnels)
Changes the comma-delimited list of local tunnels to establish
on the connection.
|
void | setRemotetunnels(String tunnels)
Changes the comma-delimited list of remote tunnels to establish
on the connection.
|
void | setTimeout(long timeout)
The connection can be dropped after a specified number of
milliseconds. |
Parameters: nestedTask Nested task to execute Sequential
Returns: a sequential element to be configured.
Throws: BuildException if one of the nested tasks fails, or network error or bad parameter.
Parameters: tunnels a comma-delimited list of lport:rhost:rport tunnel specifications
Parameters: tunnels a comma-delimited list of rport:lhost:lport tunnel specifications
Parameters: timeout The new timeout value in seconds