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.
- Author:
- Curt Arnold
-
Field Summary
Fields inherited from class org.apache.tools.ant.types.DataType
checked, refFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEnv(org.apache.tools.ant.types.Environment.Variable var) Add an environment variable.org.apache.tools.ant.types.Commandline.ArgumentAdds a command-line argument.String[]Returns all arguments defined byaddLine,addValueor the argument object.getDir()Get the working directory of the process.Get the name of the executable program.String[]Get the variable list as an array.voidSet the working directory of the process.voidsetExecutable(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, toStringMethods inherited from class org.apache.tools.ant.ProjectComponent
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
-
Constructor Details
-
DebugDef
public DebugDef()Constructor.
-
-
Method Details
-
setExecutable
Set the name of the executable program.- Parameters:
value- the name of the executable program
-
getExecutable
Get the name of the executable program.- Returns:
- the name of the executable program, may be null.
-
setDir
Set the working directory of the process.- Parameters:
d- the working directory of the process
-
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
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
Returns all arguments defined byaddLine,addValueor the argument object.- Returns:
- array of command line arguments, may be zero-length.
-