All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.panteleyev.jpackage.OsUtil Maven / Gradle / Ivy

There is a newer version: 1.6.5
Show newest version
/*
 Copyright (c) Petr Panteleyev. All rights reserved.
 Licensed under the BSD license. See LICENSE file in the project root for full license information.
 */
package org.panteleyev.jpackage;

abstract class OsUtil {
    private static final String OS = System.getProperty("os.name").toLowerCase();

    static boolean isWindows() {
        return OS.contains("win");
    }

    static boolean isMac() {
        return OS.contains("mac");
    }

    static boolean isLinux() {
        return OS.contains("linux");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy