Package org.apache.tools.ant.types
Class Environment
java.lang.Object
org.apache.tools.ant.types.Environment
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
representation of a single env value -
Field Summary
Modifier and TypeFieldDescriptionprotected Vector
<Environment.Variable> a vector of type Environment.Variable -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add a variable.String[]
get the variable list as an arrayGet the raw vector of variables.
-
Field Details
-
variables
-
-
Constructor Details
-
Environment
public Environment()constructor
-
-
Method Details
-
addVariable
add a variable. Validity checking is not performed at this point. Duplicates are not caught either.- Parameters:
var
- new variable.
-
getVariables
get the variable list as an array- Returns:
- array of key=value assignment strings
- Throws:
BuildException
- if any variable is misconfigured
-
getVariablesVector
Get the raw vector of variables. This is not a clone.- Returns:
- a potentially empty (but never null) vector of elements of type Variable
- Since:
- Ant 1.7
-