com.sun.enterprise.util.OS.isLinux()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(143)

本文整理了Java中com.sun.enterprise.util.OS.isLinux()方法的一些代码示例,展示了OS.isLinux()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OS.isLinux()方法的具体详情如下:
包路径:com.sun.enterprise.util.OS
类名称:OS
方法名:isLinux

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();
}

相关文章