|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.Java org.jclouds.tools.ant.taskdefs.sshjava.SSHJava
public class SSHJava
Version of the Java task that executes over ssh.
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.taskdefs.Java |
---|
redirector, redirectorElement |
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 | |
---|---|
SSHJava()
|
|
SSHJava(org.apache.tools.ant.Task owner)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class org.apache.tools.ant.taskdefs.Java |
---|
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, setupRedirector |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setRuntimeConfigurableWrapper |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SSHJava()
public SSHJava(org.apache.tools.ant.Task owner)
Method Detail |
---|
public void setId(String id)
public int executeJava() throws org.apache.tools.ant.BuildException
executeJava
in class org.apache.tools.ant.taskdefs.Java
org.apache.tools.ant.BuildException
public void addEnv(org.apache.tools.ant.types.Environment.Variable var)
addEnv
in class org.apache.tools.ant.taskdefs.Java
public 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.Java
public void setRemotebase(File remotebase)
id
.
public void setFork(boolean fork)
setFork
in class org.apache.tools.ant.taskdefs.Java
public 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.ProjectComponent
public void setOwningTarget(org.apache.tools.ant.Target target)
setOwningTarget
in class org.apache.tools.ant.Task
public void setTaskName(String taskName)
setTaskName
in class org.apache.tools.ant.Task
public void setDescription(String description)
setDescription
in class org.apache.tools.ant.ProjectComponent
public void setLocation(org.apache.tools.ant.Location location)
setLocation
in class org.apache.tools.ant.ProjectComponent
public void setTaskType(String type)
setTaskType
in class org.apache.tools.ant.Task
public String toString()
toString
in class Object
public void addSysproperty(org.apache.tools.ant.types.Environment.Variable sysp)
addSysproperty
in class org.apache.tools.ant.taskdefs.Java
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |