Class Continuus
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.optional.ccm.Continuus
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
CCMCheck
,CCMCreateTask
,CCMReconfigure
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 TypeFieldDescriptionstatic final String
The 'Checkin' commandstatic final String
The 'Checkout' commandstatic final String
The 'CreateTask' commandstatic final String
The 'Reconfigure' commandstatic final String
The 'Reconfigure' commandFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the value of ccmAction.protected final String
Builds and returns the command string to execute ccmprotected int
run
(Commandline cmd) Run the command.protected int
run
(Commandline cmd, ExecuteStreamHandler handler) Run the command.void
Set the value of ccmAction.final void
Set the directory where the ccm executable is located.Methods inherited from class org.apache.tools.ant.Task
bindToOwner, execute, 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
-
COMMAND_CREATE_TASK
-
COMMAND_CHECKOUT
-
COMMAND_CHECKIN
-
COMMAND_RECONFIGURE
-
COMMAND_DEFAULT_TASK
-
-
Constructor Details
-
Continuus
public Continuus()
-
-
Method Details
-
getCcmAction
-
setCcmAction
Set the value of ccmAction.- Parameters:
v
- Value to assign to ccmAction.
-
setCcmDir
Set the directory where the ccm executable is located.- Parameters:
dir
- the directory containing the ccm executable
-
getCcmCommand
Builds and returns the command string to execute ccm- Returns:
- String containing path to the executable
-
run
Run the command.- Parameters:
cmd
- the command linehandler
- an execute stream handler- Returns:
- the exit status of the command
-
run
Run the command.- Parameters:
cmd
- the command line- Returns:
- the exit status of the command
-