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:
Cloneable
,ExecuteStreamHandler
Creates new Continuus ccm task and sets it as the default.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
/comment -- comments associated to the taskstatic final String
/platform flag -- target platformstatic final String
/release flagstatic final String
/resolver flagstatic final String
/release flagstatic final String
-task flag -- associate checkout task with taskFields inherited from class org.apache.tools.ant.taskdefs.optional.ccm.Continuus
COMMAND_CHECKIN, COMMAND_CHECKOUT, COMMAND_CREATE_TASK, COMMAND_DEFAULT_TASK, COMMAND_RECONFIGURE
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Executes the task.Get the value of comment.Get the value of platform.Get the value of release.Get the value of resolver.Get the value of subSystem.getTask()
Get the value of task.void
setComment
(String v) Specifies a comment.void
Specifies the target platform.void
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
read the output stream to retrieve the new task number.void
setRelease
(String v) Specify the CCM release.void
Specifies the resolver.void
Specifies the subsystem.void
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.Methods inherited from class org.apache.tools.ant.taskdefs.optional.ccm.Continuus
getCcmAction, getCcmCommand, run, run, setCcmAction, setCcmDir
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, 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.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Field Details
-
FLAG_COMMENT
-
FLAG_PLATFORM
-
FLAG_RESOLVER
-
FLAG_RELEASE
-
FLAG_SUBSYSTEM
-
FLAG_TASK
-
-
Constructor Details
-
CCMCreateTask
public CCMCreateTask()Constructor for CCMCreateTask.
-
-
Method Details
-
execute
Executes the task.Builds a command line to execute ccm and then calls Exec's run method to execute the command line.
- Overrides:
execute
in classTask
- Throws:
BuildException
- on error
-
getComment
-
setComment
-
getPlatform
-
setPlatform
Specifies the target platform.- Parameters:
v
- Value to assign to platform.
-
getResolver
-
setResolver
Specifies the resolver.- Parameters:
v
- Value to assign to resolver.
-
getRelease
-
setRelease
Specify the CCM release.- Parameters:
v
- Value to assign to release.
-
getSubSystem
-
setSubSystem
Specifies the subsystem.- Parameters:
v
- Value to assign to subSystem.
-
getTask
-
setTask
Specifies the task number used to checkin the file (may use 'default').- Parameters:
v
- Value to assign to task.
-
start
Description copied from interface:ExecuteStreamHandler
Start handling of the streams.- Specified by:
start
in interfaceExecuteStreamHandler
- Throws:
IOException
- on error
-
stop
public void stop()Description copied from interface:ExecuteStreamHandler
Stop handling of the streams - will not be restarted.- Specified by:
stop
in interfaceExecuteStreamHandler
-
setProcessInputStream
Description copied from interface:ExecuteStreamHandler
Install a handler for the input stream of the subprocess.- Specified by:
setProcessInputStream
in interfaceExecuteStreamHandler
- Parameters:
param1
- the output stream- Throws:
IOException
- on error
-
setProcessErrorStream
Description copied from interface:ExecuteStreamHandler
Install a handler for the error stream of the subprocess.- Specified by:
setProcessErrorStream
in interfaceExecuteStreamHandler
- Parameters:
is
- the input stream- Throws:
IOException
- on error
-
setProcessOutputStream
read the output stream to retrieve the new task number.- Specified by:
setProcessOutputStream
in interfaceExecuteStreamHandler
- Parameters:
is
- InputStream- Throws:
IOException
- on error
-