static void chmod(final String permision, final String path) { if (PlatformDetector.OS.isWindows()) { return; } try { Runtime.getRuntime().exec(new String[] { "chmod", permision, path }).waitFor(); //$NON-NLS-1$ } catch (Throwable e) { } } }
public static String getName() { if (OS.isWindows()) { return "microsoft"; } if (OS.isMac()) { return "apple"; } if (OS.isLinux()) { return getLinuxOsReleaseId(); } if (OS.isAndroid()) { return "google"; } throw new UnsatisfiedLinkError("Unsupported vendor: " + getName()); }
public static String getLibFileExtension() { if (isWindows()) { return "dll"; } if (isMac()) { return "dylib"; } if (isLinux() || isAndroid() || isNativeClient()) { return "so"; } throw new UnsatisfiedLinkError("Unsupported platform library-extension for: " + getName()); } }
public static String getLibFileExtension() { if (isWindows()) { return "dll"; } if (isMac()) { return "dylib"; } if (isLinux() || isAndroid() || isNativeClient()) { return "so"; } throw new UnsatisfiedLinkError("Unsupported platform library-extension for: " + getName()); } }
public static String getName() { if (OS.isWindows()) { return "microsoft"; } if (OS.isMac()) { return "apple"; } if (OS.isLinux()) { return getLinuxOsReleaseId(); } if (OS.isAndroid()) { return "google"; } throw new UnsatisfiedLinkError("Unsupported vendor: " + getName()); }
static void chmod(final String permision, final String path) { if (PlatformDetector.OS.isWindows()) { return; } try { Runtime.getRuntime().exec(new String[] { "chmod", permision, path }).waitFor(); //$NON-NLS-1$ } catch (Throwable e) { } } }