Class Environment

    • 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 java.lang.String[] getVariables()
                                        throws BuildException
        get the variable list as an array
        Returns:
        array of key=value assignment strings
        Throws:
        BuildException - if any variable is misconfigured
      • getVariablesVector

        public 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