net.sf.antcontrib.cpptasks.ide

Class DebugDef


public final class DebugDef
extends DataType

Specifies a debugging configuration for a project.
Author:
Curt Arnold

Constructor Summary

DebugDef()
Constructor.

Method Summary

void
addEnv(Environment.Variable var)
Add an environment variable.
Commandline.Argument
createArg()
Adds a command-line argument.
String[]
getArguments()
Returns all arguments defined by addLine, addValue or the argument object.
File
getDir()
Get the working directory of the process.
String
getExecutable()
Get the name of the executable program.
String[]
getVariables()
Get the variable list as an array.
void
setDir(File d)
Set the working directory of the process.
void
setExecutable(String value)
Set the name of the executable program.

Constructor Details

DebugDef

public DebugDef()
Constructor.

Method Details

addEnv

public void addEnv(Environment.Variable var)
Add an environment variable.
Parameters:
var - new environment variable

createArg

public 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.

getDir

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

getExecutable

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

getVariables

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

setDir

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

setExecutable

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

Copyright B) 2001-2006 Ant-Contrib project. All Rights Reserved.