Class DebugDef

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
net.sf.antcontrib.cpptasks.ide.DebugDef
All Implemented Interfaces:
Cloneable

public final class DebugDef extends org.apache.tools.ant.types.DataType
Specifies a debugging configuration for a project.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private org.apache.tools.ant.types.Commandline
    Command line used to hold command line arguments.
    private File
    Working directory for debug runs.
    private org.apache.tools.ant.types.Environment
    Environment used to hold environment variables.
    private String
    Name of executable.

    Fields inherited from class org.apache.tools.ant.types.DataType

    checked, ref

    Fields inherited from class org.apache.tools.ant.ProjectComponent

    description, location, project
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addEnv(org.apache.tools.ant.types.Environment.Variable var)
    Add an environment variable.
    org.apache.tools.ant.types.Commandline.Argument
    Adds a command-line argument.
    Returns all arguments defined by addLine, addValue or the argument object.
    Get the working directory of the process.
    Get the name of the executable program.
    Get the variable list as an array.
    void
    Set the working directory of the process.
    void
    Set the name of the executable program.

    Methods inherited from class org.apache.tools.ant.types.DataType

    checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString

    Methods inherited from class org.apache.tools.ant.ProjectComponent

    getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • dir

      private File dir
      Working directory for debug runs.
    • executable

      private String executable
      Name of executable.
    • env

      private org.apache.tools.ant.types.Environment env
      Environment used to hold environment variables.
    • cmdl

      private org.apache.tools.ant.types.Commandline cmdl
      Command line used to hold command line arguments.
  • Constructor Details

    • DebugDef

      public DebugDef()
      Constructor.
  • Method Details

    • setExecutable

      public void setExecutable(String value)
      Set the name of the executable program.
      Parameters:
      value - the name of the executable program
    • getExecutable

      public String getExecutable()
      Get the name of the executable program.
      Returns:
      the name of the executable program, may be null.
    • setDir

      public void setDir(File d)
      Set the working directory of the process.
      Parameters:
      d - the working directory of the process
    • getDir

      public File getDir()
      Get the working directory of the process.
      Returns:
      the working directory of the process, may be null.
    • addEnv

      public void addEnv(org.apache.tools.ant.types.Environment.Variable var)
      Add an environment variable.
      Parameters:
      var - new environment variable
    • getVariables

      public String[] getVariables()
      Get the variable list as an array.
      Returns:
      array of key=value assignment strings
    • createArg

      public org.apache.tools.ant.types.Commandline.Argument createArg()
      Adds a command-line argument.
      Returns:
      new command line argument created
    • getArguments

      public String[] getArguments()
      Returns all arguments defined by addLine, addValue or the argument object.
      Returns:
      array of command line arguments, may be zero-length.