public class CCMCreateTask extends Continuus implements ExecuteStreamHandler
Modifier and Type | Field and Description |
---|---|
static String |
FLAG_COMMENT
/comment -- comments associated to the task
|
static String |
FLAG_PLATFORM
/platform flag -- target platform
|
static String |
FLAG_RELEASE
/release flag
|
static String |
FLAG_RESOLVER
/resolver flag
|
static String |
FLAG_SUBSYSTEM
/release flag
|
static String |
FLAG_TASK
-task flag -- associate checkout task with task
|
COMMAND_CHECKIN, COMMAND_CHECKOUT, COMMAND_CREATE_TASK, COMMAND_DEFAULT_TASK, COMMAND_RECONFIGURE
Constructor and Description |
---|
CCMCreateTask()
Constructor for CCMCreateTask.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Executes the task.
|
String |
getComment()
Get the value of comment.
|
String |
getPlatform()
Get the value of platform.
|
String |
getRelease()
Get the value of release.
|
String |
getResolver()
Get the value of resolver.
|
String |
getSubSystem()
Get the value of subSystem.
|
String |
getTask()
Get the value of task.
|
void |
setComment(String v)
Specifies a comment.
|
void |
setPlatform(String v)
Specifies the target platform.
|
void |
setProcessErrorStream(InputStream is)
Install a handler for the error stream of the subprocess.
|
void |
setProcessInputStream(OutputStream param1)
Install a handler for the input stream of the subprocess.
|
void |
setProcessOutputStream(InputStream is)
read the output stream to retrieve the new task number.
|
void |
setRelease(String v)
Specify the CCM release.
|
void |
setResolver(String v)
Specifies the resolver.
|
void |
setSubSystem(String v)
Specifies the subsystem.
|
void |
setTask(String v)
Specifies the task number used to checkin
the file (may use 'default').
|
void |
start()
Start handling of the streams.
|
void |
stop()
Stop handling of the streams - will not be restarted.
|
getCcmAction, getCcmCommand, run, run, setCcmAction, setCcmDir
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
public static final String FLAG_COMMENT
public static final String FLAG_PLATFORM
public static final String FLAG_RELEASE
public static final String FLAG_RESOLVER
public static final String FLAG_SUBSYSTEM
public static final String FLAG_TASK
public void execute() throws BuildException
Builds a command line to execute ccm and then calls Exec's run method to execute the command line.
execute
in class Task
BuildException
- on errorpublic String getComment()
public String getPlatform()
public String getRelease()
public String getResolver()
public String getSubSystem()
public String getTask()
public void setComment(String v)
v
- Value to assign to comment.public void setPlatform(String v)
v
- Value to assign to platform.public void setProcessErrorStream(InputStream is) throws IOException
ExecuteStreamHandler
setProcessErrorStream
in interface ExecuteStreamHandler
is
- the input streamIOException
- on errorpublic void setProcessInputStream(OutputStream param1) throws IOException
ExecuteStreamHandler
setProcessInputStream
in interface ExecuteStreamHandler
param1
- the output streamIOException
- on errorpublic void setProcessOutputStream(InputStream is) throws IOException
setProcessOutputStream
in interface ExecuteStreamHandler
is
- InputStreamIOException
- on errorpublic void setRelease(String v)
v
- Value to assign to release.public void setResolver(String v)
v
- Value to assign to resolver.public void setSubSystem(String v)
v
- Value to assign to subSystem.public void setTask(String v)
v
- Value to assign to task.public void start() throws IOException
ExecuteStreamHandler
start
in interface ExecuteStreamHandler
IOException
- on errorpublic void stop()
ExecuteStreamHandler
stop
in interface ExecuteStreamHandler