Class Environment
java.lang.Object
org.wildfly.plugin.common.Environment
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetJavaCommand(Path javaHome) Returns the Java command to use.static String[]Returns the default JVM arguments for a modular environment.static booleanisModularJvm(Path javaHome) Checks to see if thejavaHomeis a modular JVM.static booleanDetermines if this is a Windows environment.
-
Constructor Details
-
Environment
public Environment()
-
-
Method Details
-
isModularJvm
Checks to see if thejavaHomeis a modular JVM.- Parameters:
javaHome- the Java Home ifnullan attempt to discover the Java Home will be done- Returns:
trueif this is a modular environment
-
getModularJvmArguments
Returns the default JVM arguments for a modular environment.- Returns:
- the modular arguments
-
getJavaCommand
-
isWindows
public static boolean isWindows()Determines if this is a Windows environment.- Returns:
trueif this is a Windows environment, otherwisefalse
-