Class HostSystem
java.lang.Object
io.github.ascopes.protobufmavenplugin.utils.HostSystem
@Description("Discovers information about the platform that the plugin is being invoked on")
@Named
public final class HostSystem
extends Object
A bean that exposes information about the underlying platform and the context of the invocation.
- Author:
- Ashley Scopes
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
optionalFunction
(Function<A, @Nullable R> fn) parsePathExt
(String rawPathExt, String pathSeparator) private static <T> T
-
Field Details
-
log
private static final org.slf4j.Logger log -
operatingSystem
-
cpuArchitecture
-
pathSeparator
-
javaHome
-
javaVendor
-
path
-
pathExt
-
-
Constructor Details
-
HostSystem
@Inject public HostSystem() -
HostSystem
-
-
Method Details
-
getOperatingSystem
-
getCpuArchitecture
-
isProbablyLinux
public boolean isProbablyLinux() -
isProbablyTermux
public boolean isProbablyTermux() -
isProbablyMacOs
public boolean isProbablyMacOs() -
isProbablyWindows
public boolean isProbablyWindows() -
getJavaExecutablePath
-
getSystemPath
-
getPathSeparator
-
getSystemPathExtensions
-
parsePath
-
parsePathExt
-
tokenizeFilePath
-
tryParseSystemFilePath
-
optionalFunction
-