public class EnvironmentProperties
extends java.util.Properties
,
Serialized FormModifier and Type | Class and Description |
---|---|
class |
EnvironmentProperties.PumpStreamHandler |
class |
EnvironmentProperties.StreamPumper |
Constructor and Description |
---|
EnvironmentProperties() |
Modifier and Type | Method and Description |
---|---|
protected void |
addEnvironment(java.lang.String line)
Add a new environment value.
|
void |
getEnvironment()
Find the list of environment variables for this process.
|
static boolean |
isArch(java.lang.String arch)
Determines if the OS on which Ant is executing matches the
given OS architecture.
|
static boolean |
isFamily(java.lang.String family)
Determines if the OS on which Ant is executing matches the
given OS family.
|
static boolean |
isName(java.lang.String name)
Determines if the OS on which Ant is executing matches the
given OS name.
|
static boolean |
isOs(java.lang.String family,
java.lang.String name,
java.lang.String arch,
java.lang.String version)
Determines if the OS on which Ant is executing matches the
given OS family, name, architecture and version
|
static boolean |
isVersion(java.lang.String version)
Determines if the OS on which Ant is executing matches the
given OS version.
|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
public void getEnvironment()
protected void addEnvironment(java.lang.String line)
public static boolean isFamily(java.lang.String family)
public static boolean isName(java.lang.String name)
public static boolean isArch(java.lang.String arch)
public static boolean isVersion(java.lang.String version)
public static boolean isOs(java.lang.String family, java.lang.String name, java.lang.String arch, java.lang.String version)
family
- The OS familyname
- The OS namearch
- The OS architectureversion
- The OS version