|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectprotoj.lang.internal.ant.ScpTask
public final class ScpTask
A convenience class for performing a secure copy. Use the constructors to
specify the minimal and most widely anticipated configuration and the
initXXX methods for the less common configuration options.
| Constructor Summary | |
|---|---|
ScpTask(java.lang.String toDir,
java.io.File localFile)
Please consult the man page for scp for information about these parameters. |
|
ScpTask(java.lang.String user,
java.lang.String host,
java.io.File localFile,
java.lang.String dest)
Please consult the man page for scp for information about these parameters. |
|
| Method Summary | |
|---|---|
void |
execute()
|
org.apache.tools.ant.taskdefs.optional.ssh.Scp |
getScp()
The underlying ant task. |
void |
initKeyAuthentication(java.lang.String passphrase,
java.lang.String keyFile)
Call this method to when using key authentication. |
void |
initLogging(java.io.File logFile)
Enables logging to the specified log file at Project.MSG_INFO level. |
void |
initPasswordAuthentication(java.lang.String password)
Call this method when using simple password authentication. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScpTask(java.lang.String user,
java.lang.String host,
java.io.File localFile,
java.lang.String dest)
user - host - localFile - dest -
public ScpTask(java.lang.String toDir,
java.io.File localFile)
toDir - localFile - | Method Detail |
|---|
public void initLogging(java.io.File logFile)
logFile -
public void initKeyAuthentication(java.lang.String passphrase,
java.lang.String keyFile)
passphrase - keyFile - public void initPasswordAuthentication(java.lang.String password)
password - public org.apache.tools.ant.taskdefs.optional.ssh.Scp getScp()
public void execute()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||