hudson.plugins.dimensionsscm
Class GenericCmdTask
java.lang.Object
hudson.plugins.dimensionsscm.GenericCmdTask
- All Implemented Interfaces:
- hudson.FilePath.FileCallable<java.lang.Boolean>, java.io.Serializable
- Direct Known Subclasses:
- CheckInCmdTask, CheckOutCmdTask
public class GenericCmdTask
- extends java.lang.Object
- implements hudson.FilePath.FileCallable<java.lang.Boolean>
Class implementation of the command process.
- See Also:
- Serialized Form
|
Constructor Summary |
GenericCmdTask()
|
GenericCmdTask(java.lang.String userName,
java.lang.String passwd,
java.lang.String database,
java.lang.String server,
int version,
hudson.FilePath workspace,
hudson.model.TaskListener listener)
|
|
Method Summary |
protected java.io.File |
createParamFile()
Utility routine to create parameter file for dmcli |
java.lang.Boolean |
execute(java.io.File exe,
java.io.File param,
java.io.File area)
|
protected java.io.File |
getExecutable(java.lang.String exeName)
Utility routine to look for an executable in the path |
java.lang.Boolean |
invoke(java.io.File area,
hudson.remoting.VirtualChannel channel)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
workspace
protected hudson.FilePath workspace
listener
protected hudson.model.TaskListener listener
pu
protected PathUtils pu
userName
protected java.lang.String userName
passwd
protected java.lang.String passwd
database
protected java.lang.String database
server
protected java.lang.String server
version
protected int version
serialVersionUID
protected static final long serialVersionUID
- See Also:
- Constant Field Values
GenericCmdTask
public GenericCmdTask()
GenericCmdTask
public GenericCmdTask(java.lang.String userName,
java.lang.String passwd,
java.lang.String database,
java.lang.String server,
int version,
hudson.FilePath workspace,
hudson.model.TaskListener listener)
getExecutable
protected java.io.File getExecutable(java.lang.String exeName)
- Utility routine to look for an executable in the path
- Parameters:
exeName -
- Returns:
- File
createParamFile
protected java.io.File createParamFile()
throws java.io.IOException
- Utility routine to create parameter file for dmcli
- Returns:
- File
- Throws:
java.io.IOException
invoke
public java.lang.Boolean invoke(java.io.File area,
hudson.remoting.VirtualChannel channel)
throws java.io.IOException
- Specified by:
invoke in interface hudson.FilePath.FileCallable<java.lang.Boolean>
- Throws:
java.io.IOException
execute
public java.lang.Boolean execute(java.io.File exe,
java.io.File param,
java.io.File area)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2010. All Rights Reserved.