org.apache.tools.ant.types

Class Environment

public class Environment extends Object

Wrapper for environment variables.
Nested Class Summary
static classEnvironment.Variable
representation of a single env value
Field Summary
protected Vectorvariables
a vector of type Enviromment.Variable
Constructor Summary
Environment()
constructor
Method Summary
voidaddVariable(Environment.Variable var)
add a variable.
String[]getVariables()
get the variable list as an array

Field Detail

variables

protected Vector variables
a vector of type Enviromment.Variable

See Also: Variable

Constructor Detail

Environment

public Environment()
constructor

Method Detail

addVariable

public void addVariable(Environment.Variable var)
add a variable. Validity checking is not performed at this point. Duplicates are not caught either.

Parameters: var new variable.

getVariables

public String[] getVariables()
get the variable list as an array

Returns: array of key=value assignment strings

Throws: BuildException if any variable is misconfigured

Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.