Package net.sf.antcontrib.cpptasks.ide
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
FieldsModifier and TypeFieldDescriptionprivate org.apache.tools.ant.types.CommandlineCommand line used to hold command line arguments.private FileWorking directory for debug runs.private org.apache.tools.ant.types.EnvironmentEnvironment used to hold environment variables.private StringName of executable.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
-
Field Details
-
dir
Working directory for debug runs. -
executable
Name of executable. -
env
private org.apache.tools.ant.types.Environment envEnvironment used to hold environment variables. -
cmdl
private org.apache.tools.ant.types.Commandline cmdlCommand line used to hold command line arguments.
-
-
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.
-