Package org.apache.tools.ant.types
Class Environment
- java.lang.Object
- 
- org.apache.tools.ant.types.Environment
 
- 
- Direct Known Subclasses:
- CommandlineJava.SysProperties
 
 public class Environment extends java.lang.ObjectWrapper for environment variables.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classEnvironment.Variablerepresentation of a single env value
 - 
Field SummaryFields Modifier and Type Field Description protected java.util.Vector<Environment.Variable>variablesa vector of type Environment.Variable
 - 
Constructor SummaryConstructors Constructor Description Environment()constructor
 - 
Method SummaryModifier and Type Method Description voidaddVariable(Environment.Variable var)add a variable.java.lang.String[]getVariables()get the variable list as an arrayjava.util.Vector<Environment.Variable>getVariablesVector()Get the raw vector of variables.
 
- 
- 
- 
Field Detail- 
variablesprotected java.util.Vector<Environment.Variable> variables a vector of type Environment.Variable- See Also:
- Environment.Variable
 
 
- 
 - 
Method Detail- 
addVariablepublic 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.
 
 - 
getVariablespublic java.lang.String[] getVariables() throws BuildExceptionget the variable list as an array- Returns:
- array of key=value assignment strings
- Throws:
- BuildException- if any variable is misconfigured
 
 - 
getVariablesVectorpublic java.util.Vector<Environment.Variable> 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
 
 
- 
 
-