public class CorePlatformUtils extends Object
| 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 |
checkAcceptCondition(net.thevpc.nuts.NutsEnvCondition condition,
boolean currentVM,
net.thevpc.nuts.NutsSession session) |
static Map<String,String> |
getOsDistMap(net.thevpc.nuts.NutsSession session) |
static Map<String,String> |
getOsDistMapLinux(net.thevpc.nuts.NutsSession session)
this is inspired from
http://stackoverflow.com/questions/15018474/getting-linux-distro-from-java
thanks to //PbxMan//
|
static String |
getPackageName(String cn) |
static String |
getPlatformOs(net.thevpc.nuts.NutsSession ws)
https://en.wikipedia.org/wiki/List_of_Microsoft_Windows_versions
|
static String |
getPlatformOsDist(net.thevpc.nuts.NutsSession session) |
static String |
getSimpleClassName(String cn) |
static boolean |
isLoadedClassPath(File file,
ClassLoader classLoader,
net.thevpc.nuts.NutsSessionTerminal terminal) |
static <T> T |
runWithinLoader(Callable<T> callable,
ClassLoader loader,
net.thevpc.nuts.NutsSession session) |
public static final boolean SUPPORTS_UTF_ENCODING
public static boolean IS_CYGWIN
public static boolean IS_MINGW_XTERM
public static Map<String,String> getOsDistMapLinux(net.thevpc.nuts.NutsSession session)
session - sessionpublic static String getPlatformOsDist(net.thevpc.nuts.NutsSession session)
public static String getPlatformOs(net.thevpc.nuts.NutsSession ws)
ws - workspacepublic static boolean checkAcceptCondition(net.thevpc.nuts.NutsEnvCondition condition,
boolean currentVM,
net.thevpc.nuts.NutsSession session)
public static boolean isLoadedClassPath(File file, ClassLoader classLoader, net.thevpc.nuts.NutsSessionTerminal terminal)
public static <T> T runWithinLoader(Callable<T> callable, ClassLoader loader, net.thevpc.nuts.NutsSession session)
Copyright © 2022 vpc open source initiative. All rights reserved.