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

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.CCMCheck
Direct Known Subclasses:
CCMCheckin, CCMCheckinDefault, CCMCheckout

public class CCMCheck
extends Continuus

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

Author:
Benoit Moussaud benoit.moussaud@criltelecom.com

Field Summary
static java.lang.String FLAG_COMMENT
          -comment flag -- comment to attach to the file
static java.lang.String FLAG_TASK
          -task flag -- associate checckout task with task
 
Fields 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.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
CCMCheck()
           
 
Method Summary
 void execute()
          Executes the task.
 java.lang.String getComment()
          Get the value of comment.
 java.io.File getFile()
          Get the value of file.
 java.lang.String getTask()
          Get the value of task.
 void setComment(java.lang.String v)
          Set the value of comment.
 void setFile(java.io.File v)
          Set the value of file.
 void setTask(java.lang.String v)
          Set the value of task.
 
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
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FLAG_COMMENT

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

FLAG_TASK

public static final java.lang.String FLAG_TASK
-task flag -- associate checckout task with task
Constructor Detail

CCMCheck

public CCMCheck()
Method Detail

getFile

public java.io.File getFile()
Get the value of file.
Returns:
value of file.

setFile

public void setFile(java.io.File v)
Set the value of file.
Parameters:
v - Value to assign to file.

getComment

public java.lang.String getComment()
Get the value of comment.
Returns:
value of comment.

setComment

public void setComment(java.lang.String v)
Set the value of comment.
Parameters:
v - Value to assign to comment.

getTask

public java.lang.String getTask()
Get the value of task.
Returns:
value of task.

setTask

public void setTask(java.lang.String v)
Set the value of task.
Parameters:
v - Value to assign to task.

execute

public void execute()
             throws BuildException
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 class Task
Following copied from class: org.apache.tools.ant.Task
Throws:
BuildException - if someting goes wrong with the build


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.