Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs.optional.ccm

public Class CCMCreateTask

extends Continuus
implements ExecuteStreamHandler
Class Inheritance
All Implemented Interfaces
org.apache.tools.ant.taskdefs.ExecuteStreamHandler
Imports
java.io.BufferedReader, .IOException, .InputStream, .InputStreamReader, .OutputStream, org.apache.tools.ant.BuildException, .Project, org.apache.tools.ant.taskdefs.Execute, .ExecuteStreamHandler, org.apache.tools.ant.types.Commandline, org.apache.tools.ant.util.StringUtils

Creates new Continuus ccm task and sets it as the default.

Field Summary

Modifier and TypeField and Description
private String
public static final String
FLAG_COMMENT

/comment -- comments associated to the task

public static final String
FLAG_PLATFORM

/platform flag -- target platform

public static final String
FLAG_RELEASE

/release flag

public static final String
FLAG_RESOLVER

/resolver flag

public static final String
FLAG_SUBSYSTEM

/release flag

public static final String
FLAG_TASK

-task flag -- associate checkout task with task

private String
private String
private String
private String
private String
Inherited from org.apache.tools.ant.taskdefs.optional.ccm.Continuus:
COMMAND_CHECKINCOMMAND_CHECKOUTCOMMAND_CREATE_TASKCOMMAND_DEFAULT_TASKCOMMAND_RECONFIGURE

Constructor Summary

AccessConstructor and Description
public
CCMCreateTask()

Constructor for CCMCreateTask.

Method Summary

Modifier and TypeMethod and Description
private void
checkOptions(Commandline cmd)

Check the command line options.

public void
execute()

Overrides org.apache.tools.ant.Task.execute.

Executes the task.
public String

Returns:

value of comment.
getComment
()

Get the value of comment.

public String

Returns:

value of platform.
getPlatform
()

Get the value of platform.

public String

Returns:

value of release.
getRelease
()

Get the value of release.

public String

Returns:

value of resolver.
getResolver
()

Get the value of resolver.

public String

Returns:

value of subSystem.
getSubSystem
()

Get the value of subSystem.

public String

Returns:

value of task.
getTask
()

Get the value of task.

public void
setComment(String
Value to assign to comment.
v
)

Specifies a comment.

public void
setPlatform(String
Value to assign to platform.
v
)

Specifies the target platform.

public void
setProcessErrorStream(InputStream
the input stream
is
)

Implements org.apache.tools.ant.taskdefs.ExecuteStreamHandler.setProcessErrorStream.

Install a handler for the error stream of the subprocess.
public void
setProcessInputStream(OutputStream
the output stream
param1
)

Implements org.apache.tools.ant.taskdefs.ExecuteStreamHandler.setProcessInputStream.

Install a handler for the input stream of the subprocess.
public void
setProcessOutputStream(InputStream
InputStream
is
)

Implements org.apache.tools.ant.taskdefs.ExecuteStreamHandler.setProcessOutputStream.

read the output stream to retrieve the new task number.
public void
setRelease(String
Value to assign to release.
v
)

Specify the CCM release.

public void
setResolver(String
Value to assign to resolver.
v
)

Specifies the resolver.

public void
setSubSystem(String
Value to assign to subSystem.
v
)

Specifies the subsystem.

public void
setTask(String
Value to assign to task.
v
)

Specifies the task number used to checkin the file (may use 'default').

public void
start()

Implements org.apache.tools.ant.taskdefs.ExecuteStreamHandler.start.

Start handling of the streams.
public void
stop()

Implements org.apache.tools.ant.taskdefs.ExecuteStreamHandler.stop.

Stop handling of the streams - will not be restarted.
Inherited from org.apache.tools.ant.taskdefs.optional.ccm.Continuus:
getCcmActiongetCcmCommandrunrunsetCcmActionsetCcmDir

Field Detail

commentback to summary
private String comment
FLAG_COMMENTback to summary
public static final String FLAG_COMMENT

/comment -- comments associated to the task

FLAG_PLATFORMback to summary
public static final String FLAG_PLATFORM

/platform flag -- target platform

FLAG_RELEASEback to summary
public static final String FLAG_RELEASE

/release flag

FLAG_RESOLVERback to summary
public static final String FLAG_RESOLVER

/resolver flag

FLAG_SUBSYSTEMback to summary
public static final String FLAG_SUBSYSTEM

/release flag

FLAG_TASKback to summary
public static final String FLAG_TASK

-task flag -- associate checkout task with task

platformback to summary
private String platform
releaseback to summary
private String release
resolverback to summary
private String resolver
subSystemback to summary
private String subSystem
taskback to summary
private String task

Constructor Detail

CCMCreateTaskback to summary
public CCMCreateTask()

Constructor for CCMCreateTask.

Method Detail

checkOptionsback to summary
private void checkOptions(Commandline cmd)

Check the command line options.

executeback to summary
public void execute() throws BuildException

Overrides org.apache.tools.ant.Task.execute.

Executes the task.

Builds a command line to execute ccm and then calls Exec's run method to execute the command line.

Annotations
@Override
Exceptions
BuildException:
on error
getCommentback to summary
public String getComment()

Get the value of comment.

Returns:String

value of comment.

getPlatformback to summary
public String getPlatform()

Get the value of platform.

Returns:String

value of platform.

getReleaseback to summary
public String getRelease()

Get the value of release.

Returns:String

value of release.

getResolverback to summary
public String getResolver()

Get the value of resolver.

Returns:String

value of resolver.

getSubSystemback to summary
public String getSubSystem()

Get the value of subSystem.

Returns:String

value of subSystem.

getTaskback to summary
public String getTask()

Get the value of task.

Returns:String

value of task.

setCommentback to summary
public void setComment(String v)

Specifies a comment.

Parameters
v:String

Value to assign to comment.

setPlatformback to summary
public void setPlatform(String v)

Specifies the target platform.

Parameters
v:String

Value to assign to platform.

setProcessErrorStreamback to summary
public void setProcessErrorStream(InputStream is) throws IOException

Implements org.apache.tools.ant.taskdefs.ExecuteStreamHandler.setProcessErrorStream.

Doc from org.apache.tools.ant.taskdefs.ExecuteStreamHandler.setProcessErrorStream.

Install a handler for the error stream of the subprocess.

Parameters
is:InputStream

the input stream

Annotations
@Override
Exceptions
IOException:
on error
setProcessInputStreamback to summary
public void setProcessInputStream(OutputStream param1) throws IOException

Implements org.apache.tools.ant.taskdefs.ExecuteStreamHandler.setProcessInputStream.

Doc from org.apache.tools.ant.taskdefs.ExecuteStreamHandler.setProcessInputStream.

Install a handler for the input stream of the subprocess.

Parameters
param1:OutputStream

the output stream

Annotations
@Override
Exceptions
IOException:
on error
setProcessOutputStreamback to summary
public void setProcessOutputStream(InputStream is) throws IOException

Implements org.apache.tools.ant.taskdefs.ExecuteStreamHandler.setProcessOutputStream.

read the output stream to retrieve the new task number.

Parameters
is:InputStream

InputStream

Annotations
@Override
Exceptions
IOException:
on error
setReleaseback to summary
public void setRelease(String v)

Specify the CCM release.

Parameters
v:String

Value to assign to release.

setResolverback to summary
public void setResolver(String v)

Specifies the resolver.

Parameters
v:String

Value to assign to resolver.

setSubSystemback to summary
public void setSubSystem(String v)

Specifies the subsystem.

Parameters
v:String

Value to assign to subSystem.

setTaskback to summary
public void setTask(String v)

Specifies the task number used to checkin the file (may use 'default').

Parameters
v:String

Value to assign to task.

startback to summary
public void start() throws IOException

Implements org.apache.tools.ant.taskdefs.ExecuteStreamHandler.start.

Doc from org.apache.tools.ant.taskdefs.ExecuteStreamHandler.start.

Start handling of the streams.

Annotations
@Override
Exceptions
IOException:
on error
stopback to summary
public void stop()

Implements org.apache.tools.ant.taskdefs.ExecuteStreamHandler.stop.

Doc from org.apache.tools.ant.taskdefs.ExecuteStreamHandler.stop.

Stop handling of the streams - will not be restarted.

Annotations
@Override