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 booleanprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected intprotected SshClientprotected Stringprotected Vectorprotected Stringprotected booleanFields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidvoidexecute()protected voidprotected booleanvoidsetAlways(boolean always) voidvoidsetFingerprint(String fingerprint) voidvoidsetKeyfile(String keyfile) voidsetLogfile(String logfile) voidvoidsetNewline(String newline) voidsetPassphrase(String passphrase) voidsetPassword(String password) voidsetPort(int port) voidsetSshtoolshome(String sshtoolsHome) voidsetUsername(String username) voidsetVerifyhost(boolean verifyhost) protected voidvalidate()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, setTaskTypeMethods 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:
executein 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
-