Class CCMCreateTask
- java.lang.Object
- 
- org.apache.tools.ant.ProjectComponent
- 
- org.apache.tools.ant.Task
- 
- org.apache.tools.ant.taskdefs.optional.ccm.Continuus
- 
- org.apache.tools.ant.taskdefs.optional.ccm.CCMCreateTask
 
 
 
 
- 
- All Implemented Interfaces:
- java.lang.Cloneable,- ExecuteStreamHandler
 
 public class CCMCreateTask extends Continuus implements ExecuteStreamHandler Creates new Continuus ccm task and sets it as the default.
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringFLAG_COMMENT/comment -- comments associated to the taskstatic java.lang.StringFLAG_PLATFORM/platform flag -- target platformstatic java.lang.StringFLAG_RELEASE/release flagstatic java.lang.StringFLAG_RESOLVER/resolver flagstatic java.lang.StringFLAG_SUBSYSTEM/release flagstatic java.lang.StringFLAG_TASK-task flag -- associate checkout task with task- 
Fields inherited from class org.apache.tools.ant.taskdefs.optional.ccm.ContinuusCOMMAND_CHECKIN, COMMAND_CHECKOUT, COMMAND_CREATE_TASK, COMMAND_DEFAULT_TASK, COMMAND_RECONFIGURE
 - 
Fields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
 
- 
 - 
Constructor SummaryConstructors Constructor Description CCMCreateTask()Constructor for CCMCreateTask.
 - 
Method SummaryModifier and Type Method Description voidexecute()Executes the task.java.lang.StringgetComment()Get the value of comment.java.lang.StringgetPlatform()Get the value of platform.java.lang.StringgetRelease()Get the value of release.java.lang.StringgetResolver()Get the value of resolver.java.lang.StringgetSubSystem()Get the value of subSystem.java.lang.StringgetTask()Get the value of task.voidsetComment(java.lang.String v)Specifies a comment.voidsetPlatform(java.lang.String v)Specifies the target platform.voidsetProcessErrorStream(java.io.InputStream is)Install a handler for the error stream of the subprocess.voidsetProcessInputStream(java.io.OutputStream param1)Install a handler for the input stream of the subprocess.voidsetProcessOutputStream(java.io.InputStream is)read the output stream to retrieve the new task number.voidsetRelease(java.lang.String v)Specify the CCM release.voidsetResolver(java.lang.String v)Specifies the resolver.voidsetSubSystem(java.lang.String v)Specifies the subsystem.voidsetTask(java.lang.String v)Specifies the task number used to checkin the file (may use 'default').voidstart()Start handling of the streams.voidstop()Stop handling of the streams - will not be restarted.- 
Methods inherited from class org.apache.tools.ant.taskdefs.optional.ccm.ContinuusgetCcmAction, getCcmCommand, run, run, setCcmAction, setCcmDir
 - 
Methods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 - 
Methods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
- 
 
- 
- 
- 
Field Detail- 
FLAG_COMMENTpublic static final java.lang.String FLAG_COMMENT /comment -- comments associated to the task- See Also:
- Constant Field Values
 
 - 
FLAG_PLATFORMpublic static final java.lang.String FLAG_PLATFORM /platform flag -- target platform- See Also:
- Constant Field Values
 
 - 
FLAG_RESOLVERpublic static final java.lang.String FLAG_RESOLVER /resolver flag- See Also:
- Constant Field Values
 
 - 
FLAG_RELEASEpublic static final java.lang.String FLAG_RELEASE /release flag- See Also:
- Constant Field Values
 
 - 
FLAG_SUBSYSTEMpublic static final java.lang.String FLAG_SUBSYSTEM /release flag- See Also:
- Constant Field Values
 
 - 
FLAG_TASKpublic static final java.lang.String FLAG_TASK -task flag -- associate checkout task with task- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
executepublic void execute() throws BuildExceptionExecutes the task.Builds a command line to execute ccm and then calls Exec's run method to execute the command line. - Overrides:
- executein class- Task
- Throws:
- BuildException- on error
 
 - 
getCommentpublic java.lang.String getComment() Get the value of comment.- Returns:
- value of comment.
 
 - 
setCommentpublic void setComment(java.lang.String v) Specifies a comment.- Parameters:
- v- Value to assign to comment.
 
 - 
getPlatformpublic java.lang.String getPlatform() Get the value of platform.- Returns:
- value of platform.
 
 - 
setPlatformpublic void setPlatform(java.lang.String v) Specifies the target platform.- Parameters:
- v- Value to assign to platform.
 
 - 
getResolverpublic java.lang.String getResolver() Get the value of resolver.- Returns:
- value of resolver.
 
 - 
setResolverpublic void setResolver(java.lang.String v) Specifies the resolver.- Parameters:
- v- Value to assign to resolver.
 
 - 
getReleasepublic java.lang.String getRelease() Get the value of release.- Returns:
- value of release.
 
 - 
setReleasepublic void setRelease(java.lang.String v) Specify the CCM release.- Parameters:
- v- Value to assign to release.
 
 - 
getSubSystempublic java.lang.String getSubSystem() Get the value of subSystem.- Returns:
- value of subSystem.
 
 - 
setSubSystempublic void setSubSystem(java.lang.String v) Specifies the subsystem.- Parameters:
- v- Value to assign to subSystem.
 
 - 
getTaskpublic java.lang.String getTask() Get the value of task.- Returns:
- value of task.
 
 - 
setTaskpublic void setTask(java.lang.String v) Specifies the task number used to checkin the file (may use 'default').- Parameters:
- v- Value to assign to task.
 
 - 
startpublic void start() throws java.io.IOExceptionDescription copied from interface:ExecuteStreamHandlerStart handling of the streams.- Specified by:
- startin interface- ExecuteStreamHandler
- Throws:
- java.io.IOException- on error
 
 - 
stoppublic void stop() Description copied from interface:ExecuteStreamHandlerStop handling of the streams - will not be restarted.- Specified by:
- stopin interface- ExecuteStreamHandler
 
 - 
setProcessInputStreampublic void setProcessInputStream(java.io.OutputStream param1) throws java.io.IOExceptionDescription copied from interface:ExecuteStreamHandlerInstall a handler for the input stream of the subprocess.- Specified by:
- setProcessInputStreamin interface- ExecuteStreamHandler
- Parameters:
- param1- the output stream
- Throws:
- java.io.IOException- on error
 
 - 
setProcessErrorStreampublic void setProcessErrorStream(java.io.InputStream is) throws java.io.IOExceptionDescription copied from interface:ExecuteStreamHandlerInstall a handler for the error stream of the subprocess.- Specified by:
- setProcessErrorStreamin interface- ExecuteStreamHandler
- Parameters:
- is- the input stream
- Throws:
- java.io.IOException- on error
 
 - 
setProcessOutputStreampublic void setProcessOutputStream(java.io.InputStream is) throws java.io.IOExceptionread the output stream to retrieve the new task number.- Specified by:
- setProcessOutputStreamin interface- ExecuteStreamHandler
- Parameters:
- is- InputStream
- Throws:
- java.io.IOException- on error
 
 
- 
 
-