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
Create a 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 were 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()
Get the size of the sysproperties instance. This merges all
property sets, so is not an O(1) operation.
- the size of the sysproperties instance.