Modifier and Type | Method and Description |
---|---|
static String |
formatVariable(String variableName)
Formats the given variable for expansion by Windows (
%VARIABLE% ) or Linux ($VARIABLE ). |
static long |
getPID() |
static boolean |
isLinux()
Determines whether the current JVM is running on the Linux OS.
|
static boolean |
isMac()
Determines whether the current JVM is running on the Mac OS.
|
static boolean |
isUnix()
Determines whether the current JVM is running on the Unix-based OS.
|
static boolean |
isWindows()
Determines whether the current JVM is running on the Windows OS.
|
static void |
kill(long pid)
Kill the process.
|
public static boolean isWindows()
public static boolean isUnix()
public static boolean isLinux()
public static boolean isMac()
public static long getPID()
public static void kill(long pid) throws IOException, InterruptedException
pid
- Process idIOException
InterruptedException
public static String formatVariable(String variableName)
%VARIABLE%
) or Linux ($VARIABLE
).variableName
- Copyright © 2017 The Apache Software Foundation. All rights reserved.