public class SSHJava
extends org.apache.tools.ant.taskdefs.Java
| Constructor and Description |
|---|
SSHJava() |
SSHJava(org.apache.tools.ant.Task owner) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEnv(org.apache.tools.ant.types.Environment.Variable var) |
void |
addSysproperty(org.apache.tools.ant.types.Environment.Variable sysp) |
int |
executeJava() |
void |
setDescription(String description) |
void |
setDir(File localDir)
Note that if the
dir property is set, this will be copied recursively to the remote
host. |
void |
setFork(boolean fork) |
void |
setHost(String host)
Remote host, either DNS name or IP.
|
void |
setId(String id) |
void |
setKeyfile(String keyfile)
Sets the keyfile for the user.
|
void |
setKnownhosts(String knownHosts)
Sets the path to the file that has the identities of all known hosts.
|
void |
setLocation(org.apache.tools.ant.Location location) |
void |
setOwningTarget(org.apache.tools.ant.Target target) |
void |
setPassphrase(String passphrase)
Sets the passphrase for the users key.
|
void |
setPassword(String password)
Sets the password for the user.
|
void |
setPort(int port)
Changes the port used to connect to the remote host.
|
void |
setProject(org.apache.tools.ant.Project project) |
void |
setRemotebase(File remotebase)
All files transfered to the host will be relative to this.
|
void |
setTaskName(String taskName) |
void |
setTaskType(String type) |
void |
setTimeout(long timeout)
The connection can be dropped after a specified number of milliseconds.
|
void |
setTrust(boolean yesOrNo)
Setting this to true trusts hosts whose identity is unknown.
|
void |
setUsername(String username)
Username known to remote host.
|
String |
toString() |
addAssertions, addConfiguredRedirector, addSyspropertyset, checkConfiguration, clearArgs, createArg, createBootclasspath, createClasspath, createJvmarg, createPermissions, createWatchdog, execute, executeJava, getCommandLine, getSysProperties, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, maybeSetResultPropertyValue, run, setAppend, setArgs, setClassname, setClasspath, setClasspathRef, setCloneVm, setError, setErrorProperty, setFailonerror, setInput, setInputString, setJar, setJvm, setJvmargs, setJVMVersion, setLogError, setMaxmemory, setNewenvironment, setOutput, setOutputproperty, setResultProperty, setSpawn, setTimeout, setupRedirectorbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setRuntimeConfigurableWrapperpublic void setId(String id)
public int executeJava()
throws org.apache.tools.ant.BuildException
executeJava in class org.apache.tools.ant.taskdefs.Javaorg.apache.tools.ant.BuildExceptionpublic void addEnv(org.apache.tools.ant.types.Environment.Variable var)
addEnv in class org.apache.tools.ant.taskdefs.Javapublic void setDir(File localDir)
dir property is set, this will be copied recursively to the remote
host.setDir in class org.apache.tools.ant.taskdefs.Javapublic void setRemotebase(File remotebase)
id.public void setFork(boolean fork)
setFork in class org.apache.tools.ant.taskdefs.Javapublic void setHost(String host)
host - The new host valuepublic void setUsername(String username)
username - The new username valuepublic void setPassword(String password)
password - The new password valuepublic void setKeyfile(String keyfile)
keyfile - The new keyfile valuepublic void setPassphrase(String passphrase)
passphrase - The new passphrase valuepublic void setKnownhosts(String knownHosts)
knownHosts - a path to the known hosts file.public void setTrust(boolean yesOrNo)
yesOrNo - if true trust the identity of unknown hosts.public void setPort(int port)
port - port number of remote host.public void setTimeout(long timeout)
timeout - The new timeout value in secondspublic void setProject(org.apache.tools.ant.Project project)
setProject in class org.apache.tools.ant.ProjectComponentpublic void setOwningTarget(org.apache.tools.ant.Target target)
setOwningTarget in class org.apache.tools.ant.Taskpublic void setTaskName(String taskName)
setTaskName in class org.apache.tools.ant.Taskpublic void setDescription(String description)
setDescription in class org.apache.tools.ant.ProjectComponentpublic void setLocation(org.apache.tools.ant.Location location)
setLocation in class org.apache.tools.ant.ProjectComponentpublic void setTaskType(String type)
setTaskType in class org.apache.tools.ant.Taskpublic void addSysproperty(org.apache.tools.ant.types.Environment.Variable sysp)
addSysproperty in class org.apache.tools.ant.taskdefs.JavaCopyright © 2009-2012 jclouds. All Rights Reserved.