Package org.conscrypt
Class HostProperties
- java.lang.Object
-
- org.conscrypt.HostProperties
-
@Internal class HostProperties extends java.lang.Object
Utilities for interacting with properties of the host being run on.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classHostProperties.ArchitectureEnumeration of architectures.(package private) static classHostProperties.OperatingSystemEnumeration of operating systems.
-
Field Summary
Fields Modifier and Type Field Description (package private) static HostProperties.ArchitectureARCHprivate static java.util.logging.Loggerlogger(package private) static HostProperties.OperatingSystemOSprivate static java.lang.StringTEMP_DIR_PROPERTY_NAME
-
Constructor Summary
Constructors Modifier Constructor Description privateHostProperties()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static HostProperties.ArchitecturegetArchitecture(java.lang.String value)Normalizes the os.arch value into the value used by the Maven os plugin (https://github.com/trustin/os-maven-plugin).private static HostProperties.OperatingSystemgetOperatingSystem(java.lang.String value)Normalizes the os.name value into the value used by the Maven os plugin (https://github.com/trustin/os-maven-plugin).(package private) static java.io.FilegetTempDir()(package private) static booleanisOSX()(package private) static booleanisWindows()private static java.lang.Stringnormalize(java.lang.String value)private static java.io.FiletoDirectory(java.lang.String path)
-
-
-
Field Detail
-
logger
private static final java.util.logging.Logger logger
-
TEMP_DIR_PROPERTY_NAME
private static final java.lang.String TEMP_DIR_PROPERTY_NAME
- See Also:
- Constant Field Values
-
OS
static final HostProperties.OperatingSystem OS
-
ARCH
static final HostProperties.Architecture ARCH
-
-
Method Detail
-
isWindows
static boolean isWindows()
-
isOSX
static boolean isOSX()
-
getTempDir
static java.io.File getTempDir()
-
toDirectory
private static java.io.File toDirectory(java.lang.String path)
-
normalize
private static java.lang.String normalize(java.lang.String value)
-
getOperatingSystem
private static HostProperties.OperatingSystem getOperatingSystem(java.lang.String value)
Normalizes the os.name value into the value used by the Maven os plugin (https://github.com/trustin/os-maven-plugin). This plugin is used to generate platform-specific classifiers for artifacts.
-
getArchitecture
private static HostProperties.Architecture getArchitecture(java.lang.String value)
Normalizes the os.arch value into the value used by the Maven os plugin (https://github.com/trustin/os-maven-plugin). This plugin is used to generate platform-specific classifiers for artifacts.
-
-