本文整理了Java中com.sun.enterprise.util.OS.isLinux()
方法的一些代码示例,展示了OS.isLinux()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OS.isLinux()
方法的具体详情如下:
包路径:com.sun.enterprise.util.OS
类名称:OS
方法名:isLinux
暂无
代码示例来源:origin: org.glassfish.main.admin/server-mgmt
static boolean apropos() {
if (LINUX_HACK)
return true;
return OS.isLinux();
}
代码示例来源:origin: org.glassfish.main.common/common-util
public static boolean isSuSELinux()
{
return isLinux() && new File("/etc/SuSE-release").exists();
}
代码示例来源:origin: org.glassfish.common/common-util
public static boolean isGentooLinux()
{
return isLinux() && new File("/etc/gentoo-release").exists();
}
代码示例来源:origin: eclipse-ee4j/glassfish
public static boolean isKnoppixLinux()
{
return isLinux() && new File("/etc/knoppix_version").exists();
}
代码示例来源:origin: org.glassfish.main.common/common-util
public static boolean isFedoraLinux()
{
return isLinux() && new File("/etc/fedora-release").exists();
}
代码示例来源:origin: org.glassfish.main.common/common-util
public static boolean isMandrakeLinux()
{
return isLinux() && new File("/etc/mandrake-release").exists();
}
代码示例来源:origin: org.glassfish.common/common-util
public static boolean isKnoppixLinux()
{
return isLinux() && new File("/etc/knoppix_version").exists();
}
代码示例来源:origin: org.glassfish.common/common-util
public static boolean isMandrakeLinux()
{
return isLinux() && new File("/etc/mandrake-release").exists();
}
代码示例来源:origin: org.glassfish.common/common-util
public static boolean isRedHatLinux()
{
return isLinux() && new File("/etc/redhat-release").exists();
}
代码示例来源:origin: org.glassfish.main.common/common-util
public static boolean isGentooLinux()
{
return isLinux() && new File("/etc/gentoo-release").exists();
}
代码示例来源:origin: org.glassfish.common/common-util
public static boolean isFedoraLinux()
{
return isLinux() && new File("/etc/fedora-release").exists();
}
代码示例来源:origin: org.glassfish.common/common-util
public static boolean isMandrivaLinux()
{
return isLinux() && new File("/etc/mandriva-release").exists();
}
代码示例来源:origin: org.glassfish.common/common-util
public static boolean isSlackwareLinux()
{
return isLinux() && new File("/etc/slackware-version").exists();
}
代码示例来源:origin: eclipse-ee4j/glassfish
public static boolean isSlackwareLinux()
{
return isLinux() && new File("/etc/slackware-version").exists();
}
代码示例来源:origin: eclipse-ee4j/glassfish
public static boolean isUbuntuLinux()
{
return isLinux() && new File("/etc/lsb-release").exists();
}
代码示例来源:origin: org.glassfish.main.common/common-util
public static boolean isMandrivaLinux()
{
return isLinux() && new File("/etc/mandriva-release").exists();
}
代码示例来源:origin: org.glassfish.main.common/common-util
public static boolean isUbuntuLinux()
{
return isLinux() && new File("/etc/lsb-release").exists();
}
代码示例来源:origin: org.glassfish.common/common-util
public static boolean isSuSELinux()
{
return isLinux() && new File("/etc/SuSE-release").exists();
}
代码示例来源:origin: org.glassfish.main.common/common-util
public static boolean isKnoppixLinux()
{
return isLinux() && new File("/etc/knoppix_version").exists();
}
代码示例来源:origin: org.glassfish.main.common/common-util
public static boolean isSlackwareLinux()
{
return isLinux() && new File("/etc/slackware-version").exists();
}
内容来源于网络,如有侵权,请联系作者删除!