Package org.conscrypt

Class HostProperties


  • @Internal
    class HostProperties
    extends java.lang.Object
    Utilities for interacting with properties of the host being run on.
    • Constructor Detail

      • HostProperties

        private HostProperties()
    • 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.