org.apache.tools.ant.taskdefs.optional.ccm

Class CCMCheck

public class CCMCheck extends Continuus

Class common to all check commands (checkout, checkin,checkin default task);

UNKNOWN: ignore="true"

Field Summary
protected Vectorfilesets
static StringFLAG_COMMENT
-comment flag -- comment to attach to the file
static StringFLAG_TASK
-task flag -- associate checkout task with task
Constructor Summary
CCMCheck()
Constructor for CCMCheck.
Method Summary
voidaddFileset(FileSet set)
Adds a set of files to copy.
voidexecute()
Executes the task.
StringgetComment()
Get the value of comment.
FilegetFile()
Get the value of file.
StringgetTask()
Get the value of task.
voidsetComment(String v)
Specifies a comment.
voidsetFile(File v)
Sets the path to the file that the command will operate on.
voidsetTask(String v)
Specifies the task number used to check in the file (may use 'default').

Field Detail

filesets

protected Vector filesets

FLAG_COMMENT

public static final String FLAG_COMMENT
-comment flag -- comment to attach to the file

FLAG_TASK

public static final String FLAG_TASK
-task flag -- associate checkout task with task

Constructor Detail

CCMCheck

public CCMCheck()
Constructor for CCMCheck.

Method Detail

addFileset

public void addFileset(FileSet set)
Adds a set of files to copy.

Parameters: set the set of files

execute

public void execute()
Executes the task.

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

Throws: BuildException on error

getComment

public String getComment()
Get the value of comment.

Returns: value of comment.

getFile

public File getFile()
Get the value of file.

Returns: value of file.

getTask

public String getTask()
Get the value of task.

Returns: value of task.

setComment

public void setComment(String v)
Specifies a comment.

Parameters: v Value to assign to comment.

setFile

public void setFile(File v)
Sets the path to the file that the command will operate on.

Parameters: v Value to assign to file.

setTask

public void setTask(String v)
Specifies the task number used to check in the file (may use 'default').

Parameters: v Value to assign to task.