Class OSInformation
java.lang.Object
aQute.bnd.osgi.OSInformation
OS specific information, used by the native_capability macro for
osgi.native.* bundle properties.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionConstruct OS specific informationOSInformation(String sysPropOsName, String sysPropOsVersion) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.osgi.resource.CapabilityReturn the default capability for the current platformstatic org.osgi.resource.CapabilitygetNativeCapability(aQute.service.reporter.Reporter p, String... args) Return a native capability based on the given specification.static StringgetNativeCapabilityClause(Processor p, String[] args) Helper for the Processor._native_capability macrostatic OSInformation.OSNameVersiongetOperatingSystemAliases(String sysPropOsName, String sysPropOsVersion) static String[]static String[]getProcessorAliases(String osArch)
-
Constructor Details
-
OSInformation
Construct OS specific information- Throws:
IllegalArgumentException
-
OSInformation
- Throws:
IllegalArgumentException
-
-
Method Details
-
getProcessorAliases
-
getProcessorAliases
-
getNativeCapabilityClause
-
getOperatingSystemAliases
public static OSInformation.OSNameVersion getOperatingSystemAliases(String sysPropOsName, String sysPropOsVersion) -
getNativeCapability
public static org.osgi.resource.Capability getNativeCapability(aQute.service.reporter.Reporter p, String... args) throws Exception Return a native capability based on the given specification.- Parameters:
p- the processor for the error reportingargs- a set of assignments. The following keys are supported: osgi.native.processor,osname, osgi.native.osname, osversion,osgi.native.osversion, osgi.native.language, lang- Returns:
- a native capability
- Throws:
Exception
-
getDefaultNativeCapability
-