Package org.apache.tools.ant.types
Class Environment
java.lang.Object
org.apache.tools.ant.types.Environment
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classrepresentation of a single env value
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Vector<Environment.Variable> a vector of type Environment.Variable
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidadd a variable.String[]get the variable list as an arrayGet the raw vector of variables.
- 
Field Details- 
variables
 
- 
- 
Constructor Details- 
Environmentpublic Environment()constructor
 
- 
- 
Method Details- 
addVariableadd a variable. Validity checking is not performed at this point. Duplicates are not caught either.- Parameters:
- var- new variable.
 
- 
getVariablesget the variable list as an array- Returns:
- array of key=value assignment strings
- Throws:
- BuildException- if any variable is misconfigured
 
- 
getVariablesVectorGet 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
 
 
-