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

public abstract Class Continuus

extends Task
Class Inheritance
Known Direct Subclasses
org.apache.tools.ant.taskdefs.optional.ccm.CCMCheck, org.apache.tools.ant.taskdefs.optional.ccm.CCMCreateTask, org.apache.tools.ant.taskdefs.optional.ccm.CCMReconfigure
Imports
java.io.IOException, org.apache.tools.ant.BuildException, .Project, .Task, org.apache.tools.ant.taskdefs.Execute, .ExecuteStreamHandler, .LogStreamHandler, org.apache.tools.ant.types.Commandline, org.apache.tools.ant.util.FileUtils

A base class for creating tasks for executing commands on Continuus 5.1.

The class extends the task as it operates by executing the ccm.exe program supplied with Continuus/Synergy. By default the task expects the ccm executable to be in the path, you can override this be specifying the ccmdir attribute.

Field Summary

Modifier and TypeField and Description
private static final String
CCM_EXE

Constant for the thing to execute

private String
private String
public static final String
COMMAND_CHECKIN

The 'Checkin' command

public static final String
COMMAND_CHECKOUT

The 'Checkout' command

public static final String
COMMAND_CREATE_TASK

The 'CreateTask' command

public static final String
COMMAND_DEFAULT_TASK

The 'Reconfigure' command

public static final String
COMMAND_RECONFIGURE

The 'Reconfigure' command

Inherited from org.apache.tools.ant.Task:
targettaskNametaskTypewrapper

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

value of ccmAction.
getCcmAction
()

Get the value of ccmAction.

protected final String

Returns:

String containing path to the executable
getCcmCommand
()

Builds and returns the command string to execute ccm

protected int

Returns:

the exit status of the command
run
(Commandline
the command line
cmd
,
ExecuteStreamHandler
an execute stream handler
handler
)

Run the command.

protected int

Returns:

the exit status of the command
run
(Commandline
the command line
cmd
)

Run the command.

public void
setCcmAction(String
Value to assign to ccmAction.
v
)

Set the value of ccmAction.

public final void
setCcmDir(String
the directory containing the ccm executable
dir
)

Set the directory where the ccm executable is located.

Inherited from org.apache.tools.ant.Task:
bindToOwnerexecutegetOwningTargetgetRuntimeConfigurableWrappergetTaskNamegetTaskTypegetWrapperhandleErrorFlushhandleErrorOutputhandleFlushhandleInputhandleOutputinitisInvalidloglogloglogmaybeConfigureperformreconfiguresetOwningTargetsetRuntimeConfigurableWrappersetTaskNamesetTaskType

Field Detail

CCM_EXEback to summary
private static final String CCM_EXE

Constant for the thing to execute

ccmActionback to summary
private String ccmAction
ccmDirback to summary
private String ccmDir
COMMAND_CHECKINback to summary
public static final String COMMAND_CHECKIN

The 'Checkin' command

COMMAND_CHECKOUTback to summary
public static final String COMMAND_CHECKOUT

The 'Checkout' command

COMMAND_CREATE_TASKback to summary
public static final String COMMAND_CREATE_TASK

The 'CreateTask' command

COMMAND_DEFAULT_TASKback to summary
public static final String COMMAND_DEFAULT_TASK

The 'Reconfigure' command

COMMAND_RECONFIGUREback to summary
public static final String COMMAND_RECONFIGURE

The 'Reconfigure' command

Constructor Detail

Continuusback to summary
public Continuus()

Method Detail

getCcmActionback to summary
public String getCcmAction()

Get the value of ccmAction.

Returns:String

value of ccmAction.

getCcmCommandback to summary
protected final String getCcmCommand()

Builds and returns the command string to execute ccm

Returns:String

String containing path to the executable

runback to summary
protected int run(Commandline cmd, ExecuteStreamHandler handler)

Run the command.

Parameters
cmd:Commandline

the command line

handler:ExecuteStreamHandler

an execute stream handler

Returns:int

the exit status of the command

runback to summary
protected int run(Commandline cmd)

Run the command.

Parameters
cmd:Commandline

the command line

Returns:int

the exit status of the command

setCcmActionback to summary
public void setCcmAction(String v)

Set the value of ccmAction.

Parameters
v:String

Value to assign to ccmAction.

setCcmDirback to summary
public final void setCcmDir(String dir)

Set the directory where the ccm executable is located.

Parameters
dir:String

the directory containing the ccm executable