org.apache.tools.ant.types
Class CommandlineJava.SysProperties
- CommandlineJava
- Cloneable
public static class CommandlineJava.SysProperties
implements Cloneable
Specialized Environment class for System properties
addDefinitionsToList
public void addDefinitionsToList(ListIterator listIt)
add all definitions (including property sets) to a list
listIt
- list iterator supporting add method
addSyspropertyset
public void addSyspropertyset(PropertySet ps)
add a propertyset to the total set
ps
- the new property set
clone
public Object clone()
throws CloneNotSupportedException
deep clone
- a cloned instance of SysProperties
getVariables
public String[] getVariables()
throws BuildException
get the properties as an array; this is an override of the
superclass, as it evaluates all the properties
- getVariables in interface Environment
- the array of definitions; may be null
restoreSystem
public void restoreSystem()
throws BuildException
restore the system properties to the cached value
BuildException
- if Security prevented this operation, or
there was no system properties to restore
setSystem
public void setSystem()
throws BuildException
cache the system properties and set the system properties to the
new values
size
public int size()
This method gets the size of the sysproperties instance. This merges all
property sets, so is not an O(1) operation.
- the size of the sysproperties instance
Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.