Package org.openjdk.jmc.common.jvm
Class JVMCommandLineToolkit
java.lang.Object
org.openjdk.jmc.common.jvm.JVMCommandLineToolkit
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getJavaCommandLine
(String cmdLine) Removes jvm flags from full commandline Does not handle space in paths.static String
getMainClassOrJar
(String commandLine)
-
Constructor Details
-
JVMCommandLineToolkit
public JVMCommandLineToolkit()
-
-
Method Details
-
getMainClassOrJar
- Parameters:
commandLine
-- Returns:
- the class/jar that is being run.
-
getJavaCommandLine
Removes jvm flags from full commandline Does not handle space in paths.- Parameters:
cmdLine
- Full commandline of jvm- Returns:
- Commandline with only main class or jar file, and args to the java application.
-