Orangevolt ANT Tasks » Tasks » os.properties | ||
os.properties | Example |
os.properties creates a fixed amount of properties plus an additional property depending of the operating system type.
Fixed Properties
Operating system name
Operating system architecture
Operating system version
os.family contains the name of the operating system family. The following values may be contained: windows, os/2, netware, dos, mac, unix, win9x and macosx.
os.family is not limited to contain only one of the values. For example on a Mac OS X os.family will contain mac unix macosx. Every matched family will be returned in os.family (separated by a space).
Additionally an ant property named os.family.[family] will be created
(where [family] is replaced by windows, os/2, netware, dos, mac, unix, win9x or macosx).
Sometimes more than one family matches the operating system. In this case multiple properties starting with os.family.
will be created.
For example on a Mac OS X the properties os.family.unix, os.family.mac and os.family.macosx are created.
The value of the os.family.[family] property is always set to "true".