Class CCMCreateTask

All Implemented Interfaces:
Cloneable, ExecuteStreamHandler

public class CCMCreateTask extends Continuus implements ExecuteStreamHandler
Creates new Continuus ccm task and sets it as the default.
  • Field Details

  • Constructor Details

    • CCMCreateTask

      public CCMCreateTask()
      Constructor for CCMCreateTask.
  • Method Details

    • 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
      Throws:
      BuildException - on error
    • getComment

      public String getComment()
      Get the value of comment.
      Returns:
      value of comment.
    • setComment

      public void setComment(String v)
      Specifies a comment.
      Parameters:
      v - Value to assign to comment.
    • getPlatform

      public String getPlatform()
      Get the value of platform.
      Returns:
      value of platform.
    • setPlatform

      public void setPlatform(String v)
      Specifies the target platform.
      Parameters:
      v - Value to assign to platform.
    • getResolver

      public String getResolver()
      Get the value of resolver.
      Returns:
      value of resolver.
    • setResolver

      public void setResolver(String v)
      Specifies the resolver.
      Parameters:
      v - Value to assign to resolver.
    • getRelease

      public String getRelease()
      Get the value of release.
      Returns:
      value of release.
    • setRelease

      public void setRelease(String v)
      Specify the CCM release.
      Parameters:
      v - Value to assign to release.
    • getSubSystem

      public String getSubSystem()
      Get the value of subSystem.
      Returns:
      value of subSystem.
    • setSubSystem

      public void setSubSystem(String v)
      Specifies the subsystem.
      Parameters:
      v - Value to assign to subSystem.
    • getTask

      public String getTask()
      Get the value of task.
      Returns:
      value of task.
    • setTask

      public void setTask(String v)
      Specifies the task number used to checkin the file (may use 'default').
      Parameters:
      v - Value to assign to task.
    • start

      public void start() throws IOException
      Description copied from interface: ExecuteStreamHandler
      Start handling of the streams.
      Specified by:
      start in interface ExecuteStreamHandler
      Throws:
      IOException - on error
    • stop

      public void stop()
      Description copied from interface: ExecuteStreamHandler
      Stop handling of the streams - will not be restarted.
      Specified by:
      stop in interface ExecuteStreamHandler
    • setProcessInputStream

      public void setProcessInputStream(OutputStream param1) throws IOException
      Description copied from interface: ExecuteStreamHandler
      Install a handler for the input stream of the subprocess.
      Specified by:
      setProcessInputStream in interface ExecuteStreamHandler
      Parameters:
      param1 - the output stream
      Throws:
      IOException - on error
    • setProcessErrorStream

      public void setProcessErrorStream(InputStream is) throws IOException
      Description copied from interface: ExecuteStreamHandler
      Install a handler for the error stream of the subprocess.
      Specified by:
      setProcessErrorStream in interface ExecuteStreamHandler
      Parameters:
      is - the input stream
      Throws:
      IOException - on error
    • setProcessOutputStream

      public void setProcessOutputStream(InputStream is) throws IOException
      read the output stream to retrieve the new task number.
      Specified by:
      setProcessOutputStream in interface ExecuteStreamHandler
      Parameters:
      is - InputStream
      Throws:
      IOException - on error