@@ -0,0 +1,1448 @@
+package net.petercashel.commonlib.util;%0A%0A%0Aimport java.io.File;%0Aimport java.io.IOException;%0A%0Apublic class OS_Util %7B%0A%0A    public static OS getPlatform() %7B%0A        String osName = System.getProperty(%22os.name%22).toLowerCase();%0A        if (osName.contains(%22win%22)) %7B%0A            return OS.windows;%0A        %7D%0A        if (osName.contains(%22mac%22)) %7B%0A            return OS.macos;%0A        %7D%0A        if (osName.contains(%22solaris%22)) %7B%0A            return OS.solaris;%0A        %7D%0A        if (osName.contains(%22sunos%22)) %7B%0A            return OS.solaris;%0A        %7D%0A        if (osName.contains(%22linux%22)) %7B%0A            return OS.linux;%0A        %7D%0A        if (osName.contains(%22unix%22)) %7B%0A            return OS.linux;%0A        %7D%0A        return OS.unknown;%0A    %7D%0A%0A    public static enum OS %7B%0A        linux, solaris, windows, macos, unknown;%0A    %7D%0A    %0A    public static boolean isPosix() %7B%0A    %09if (getPlatform().ordinal() == 0 %7C%7C getPlatform().ordinal() == 1 %7C%7C getPlatform().ordinal() == 3 %7C%7C getPlatform().ordinal() == 4) return true;%0A    %09return false;%0A    %7D%09%0A%0A    public static boolean isUnix() %7B%0A    %09if (getPlatform().ordinal() == 0 %7C%7C getPlatform().ordinal() == 1 %7C%7C getPlatform().ordinal() == 4) return true;%0A    %09return false;%0A    %7D%09%0A%0A    public static boolean isDarwin() %7B%0A    %09if (getPlatform().ordinal() == 3) return true;%0A    %09return false;%0A    %7D%0A%0A    public static boolean isWinNT() %7B%0A    %09if (getPlatform().ordinal() == 2) return true;%0A    %09return false;%0A    %7D%0A%7D%0A

add OS_Util