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

public abstract class Continuus extends Task
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 Details

  • Constructor Details

    • Continuus

      public Continuus()
  • Method Details

    • getCcmAction

      public String getCcmAction()
      Get the value of ccmAction.
      Returns:
      value of ccmAction.
    • setCcmAction

      public void setCcmAction(String v)
      Set the value of ccmAction.
      Parameters:
      v - Value to assign to ccmAction.
    • setCcmDir

      public final void setCcmDir(String dir)
      Set the directory where the ccm executable is located.
      Parameters:
      dir - the directory containing the ccm executable
    • getCcmCommand

      protected final String getCcmCommand()
      Builds and returns the command string to execute ccm
      Returns:
      String containing path to the executable
    • run

      protected int run(Commandline cmd, ExecuteStreamHandler handler)
      Run the command.
      Parameters:
      cmd - the command line
      handler - an execute stream handler
      Returns:
      the exit status of the command
    • run

      protected int run(Commandline cmd)
      Run the command.
      Parameters:
      cmd - the command line
      Returns:
      the exit status of the command