org.apache.tools.ant.types
Class Environment
java.lang.Object
org.apache.tools.ant.types.Environment
public class Environment
extends java.lang.Object
Wrapper for environment variables.
protected Vector | variables - a vector of type Enviromment.Variable
|
variables
protected Vector variables
a vector of type Enviromment.Variable
Environment
public Environment()
constructor
addVariable
public void addVariable(Environment.Variable var)
add a variable.
Validity checking is not performed at this point. Duplicates
are not caught either.
getVariables
public String[] getVariables()
throws BuildException
get the variable list as an array
- array of key=value assignment strings
getVariablesVector
public Vector getVariablesVector()
Get the raw vector of variables. This is not a clone.
- a potentially empty (but never null) vector of elements of type
Variable