Package com.sshtools.ant
Class Ssh
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.sshtools.ant.Ssh
- All Implemented Interfaces:
Cloneable
public class Ssh
extends org.apache.tools.ant.Task
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected int
protected SshClient
protected String
protected Vector
protected String
protected boolean
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
void
execute()
protected void
protected boolean
void
setAlways
(boolean always) void
void
setFingerprint
(String fingerprint) void
void
setKeyfile
(String keyfile) void
setLogfile
(String logfile) void
void
setNewline
(String newline) void
setPassphrase
(String passphrase) void
setPassword
(String password) void
setPort
(int port) void
setSshtoolshome
(String sshtoolsHome) void
setUsername
(String username) void
setVerifyhost
(boolean verifyhost) protected void
validate()
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Field Details
-
host
-
port
protected int port -
username
-
password
-
keyfile
-
passphrase
-
cipher
-
mac
-
fingerprint
-
logfile
-
verifyhost
protected boolean verifyhost -
always
protected boolean always -
ssh
-
tasks
-
sshtoolsHome
-
newline
-
-
Constructor Details
-
Ssh
public Ssh()
-
-
Method Details
-
validate
protected void validate() throws org.apache.tools.ant.BuildException- Throws:
org.apache.tools.ant.BuildException
-
connectAndAuthenticate
protected void connectAndAuthenticate() throws org.apache.tools.ant.BuildException- Throws:
org.apache.tools.ant.BuildException
-
disconnect
protected void disconnect() throws org.apache.tools.ant.BuildException- Throws:
org.apache.tools.ant.BuildException
-
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
execute
in classorg.apache.tools.ant.Task
- Throws:
org.apache.tools.ant.BuildException
-
executeSubTasks
protected void executeSubTasks() throws org.apache.tools.ant.BuildException- Throws:
org.apache.tools.ant.BuildException
-
setUsername
-
setPassword
-
setPort
public void setPort(int port) -
setNewline
-
setHost
-
setKeyfile
-
setPassphrase
-
setCipher
-
setMac
-
setLogfile
-
setFingerprint
-
setVerifyhost
public void setVerifyhost(boolean verifyhost) -
setAlways
public void setAlways(boolean always) -
setSshtoolshome
-
hasMoreSftpTasks
protected boolean hasMoreSftpTasks() -
createShell
-
createExec
-
createSftp
-