| java.lang.Object com.izforge.izpack.util.OsConstraint
OsConstraint | public class OsConstraint implements java.io.Serializable(Code) | | Encapsulates OS constraints specified on creation time and allows to check them against the
current OS.
For example, this is used for <executable>s to check whether the executable is suitable for
the current OS.
author: Olexij Tkatchenko |
OsConstraint | public OsConstraint(String family, String name, String version, String arch, String jre)(Code) | | Constructs a new instance. Please remember, MacOSX belongs to Unix family.
Parameters: family - The OS family (unix, windows or mac). Parameters: name - The exact OS name. Parameters: version - The exact OS version (check property os.version for values). Parameters: arch - The machine architecture (check property os.arch for values). Parameters: jre - The Java version used for installation (check property java.version for values). |
OsConstraint | public OsConstraint(String family, String name, String version, String arch)(Code) | | Creates a new instance. Please remember, MacOSX belongs to Unix family.
Parameters: family - The OS family (unix, windows or mac). Parameters: name - The exact OS name. Parameters: version - The exact OS version (check property os.version for values). Parameters: arch - The machine architecture (check property os.arch for values). |
getOsList | public static List<OsConstraint> getOsList(XMLElement element)(Code) | | Extract a list of OS constraints from given element.
Parameters: element - parent XMLElement List of OsConstraint (or empty List if no constraints found) |
matchCurrentSystem | public boolean matchCurrentSystem()(Code) | | Matches OS specification in this class against current system properties.
Description of the Return Value |
oneMatchesCurrentSystem | public static boolean oneMatchesCurrentSystem(List<OsConstraint> constraint_list)(Code) | | Helper function: Scan a list of OsConstraints for a match.
Parameters: constraint_list - List of OsConstraint to check true if one of the OsConstraints matched the current system or constraint_list isnull (no constraints), false if none of the OsConstraints matched |
oneMatchesCurrentSystem | public static boolean oneMatchesCurrentSystem(XMLElement el)(Code) | | Helper function: Check whether the given XMLElement is "suitable" for the current OS.
Parameters: el - The XMLElement to check for OS constraints. true if there were no OS constraints or the constraints matched the current OS. |
|
|