public class CorePlatformUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CorePlatformUtils.MainClassType |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
IS_CYGWIN |
static boolean |
IS_MINGW_XTERM |
static boolean |
SUPPORTS_UTF_ENCODING |
| Constructor and Description |
|---|
CorePlatformUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkSupportedArch(String arch) |
static boolean |
checkSupportedOs(String os) |
static Boolean |
getExecutableJar(File file) |
static String[] |
getMainClassAndLibs(File jarFile,
boolean foreComponentNames) |
static CorePlatformUtils.MainClassType |
getMainClassType(InputStream stream) |
static Map<String,String> |
getOsDistMap(NutsWorkspace ws) |
static Map<String,String> |
getOsDistMapLinux(NutsWorkspace ws)
this is inspired from
http://stackoverflow.com/questions/15018474/getting-linux-distro-from-java
thanks to //PbxMan//
|
static String |
getPlatformOs(NutsWorkspace ws)
https://en.wikipedia.org/wiki/List_of_Microsoft_Windows_versions
|
static String |
getPlatformOsDist(NutsWorkspace ws) |
static boolean |
isExecutableJar(File file) |
static boolean |
isLoadedClassPath(File file,
ClassLoader classLoader,
NutsSessionTerminal terminal) |
static String |
resolveMainClass(File file) |
static <T> T |
runWithinLoader(Callable<T> callable,
ClassLoader loader,
NutsSession ws) |
public static final boolean SUPPORTS_UTF_ENCODING
public static boolean IS_CYGWIN
public static boolean IS_MINGW_XTERM
public static Map<String,String> getOsDistMap(NutsWorkspace ws)
public static Map<String,String> getOsDistMapLinux(NutsWorkspace ws)
ws - wspublic static String getPlatformOsDist(NutsWorkspace ws)
public static String getPlatformOs(NutsWorkspace ws)
ws - workspacepublic static boolean checkSupportedArch(String arch)
public static boolean checkSupportedOs(String os)
public static boolean isExecutableJar(File file)
public static String[] getMainClassAndLibs(File jarFile, boolean foreComponentNames) throws IOException
IOExceptionpublic static boolean isLoadedClassPath(File file, ClassLoader classLoader, NutsSessionTerminal terminal)
public static <T> T runWithinLoader(Callable<T> callable, ClassLoader loader, NutsSession ws)
public static CorePlatformUtils.MainClassType getMainClassType(InputStream stream)
stream - streamCopyright © 2021 vpc open source initiative. All rights reserved.