Class DebugDef

  • All Implemented Interfaces:
    java.lang.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 cmdl
      Command line used to hold command line arguments.
      private java.io.File dir
      Working directory for debug runs.
      private org.apache.tools.ant.types.Environment env
      Environment used to hold environment variables.
      private java.lang.String executable
      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
      DebugDef()
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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 createArg()
      Adds a command-line argument.
      java.lang.String[] getArguments()
      Returns all arguments defined by addLine, addValue or the argument object.
      java.io.File getDir()
      Get the working directory of the process.
      java.lang.String getExecutable()
      Get the name of the executable program.
      java.lang.String[] getVariables()
      Get the variable list as an array.
      void setDir​(java.io.File d)
      Set the working directory of the process.
      void setExecutable​(java.lang.String value)
      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 Detail

      • dir

        private java.io.File dir
        Working directory for debug runs.
      • executable

        private java.lang.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 Detail

      • DebugDef

        public DebugDef()
        Constructor.
    • Method Detail

      • setExecutable

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

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

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

        public java.io.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 java.lang.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 java.lang.String[] getArguments()
        Returns all arguments defined by addLine, addValue or the argument object.
        Returns:
        array of command line arguments, may be zero-length.