本文整理了Java中com.sun.enterprise.util.OS.isDarwin()
方法的一些代码示例,展示了OS.isDarwin()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OS.isDarwin()
方法的具体详情如下:
包路径:com.sun.enterprise.util.OS
类名称:OS
方法名:isDarwin
暂无
代码示例来源:origin: org.glassfish.admin/cli-optional
/**
* defines the command to print out the database sysinfo
* Note that when using Darwin (Mac), the property,
* "-Dderby.storage.fileSyncTransactionLog=True" is defined.
*/
public String[] sysinfoCmd() throws Exception {
if (OS.isDarwin()) {
return new String [] {
sJavaHome+File.separator+"bin"+File.separator+"java",
"-Djava.library.path="+sInstallRoot+File.separator+"lib",
"-Dderby.storage.fileSyncTransactionLog=True",
"-cp",
sClasspath + File.pathSeparator + sDatabaseClasspath,
"com.sun.enterprise.admin.cli.optional.DerbyControl",
"sysinfo",
dbHost, dbPort, "false"
};
} else {
return new String [] {
sJavaHome+File.separator+"bin"+File.separator+"java",
"-Djava.library.path="+sInstallRoot+File.separator+"lib",
"-cp",
sClasspath + File.pathSeparator + sDatabaseClasspath,
"com.sun.enterprise.admin.cli.optional.DerbyControl",
"sysinfo",
dbHost, dbPort, "false"
};
}
}
代码示例来源:origin: org.glassfish.admin/cli-optional
if (OS.isDarwin()) {
return new String[]{
sJavaHome + File.separator + "bin" + File.separator + "java",
代码示例来源:origin: org.glassfish.admin/cli-optional
/**
* Defines the command to ping the derby database.
* Note that when using Darwin (Mac), the property,
* "-Dderby.storage.fileSyncTransactionLog=True" is defined.
* See:
* http://www.jasonbrome.com/blog/archives/2004/12/05/apache_derby_on_mac_os_x.html
* https://issues.apache.org/jira/browse/DERBY-1
*/
protected String[] pingDatabaseCmd(boolean bRedirect) throws Exception {
if (OS.isDarwin()) {
return new String[]{getJavaExe().toString(),
"-Djava.library.path=" + sInstallRoot + File.separator +
"lib", "-Dderby.storage.fileSyncTransactionLog=True", "-cp",
sClasspath + File.pathSeparator + sDatabaseClasspath,
"com.sun.enterprise.admin.cli.optional.DerbyControl", "ping",
dbHost, dbPort, Boolean.valueOf(bRedirect).toString()};
} else {
return new String[]{getJavaExe().toString(),
"-Djava.library.path=" + sInstallRoot + File.separator +
"lib", "-cp",
sClasspath + File.pathSeparator + sDatabaseClasspath,
"com.sun.enterprise.admin.cli.optional.DerbyControl", "ping",
dbHost, dbPort, Boolean.valueOf(bRedirect).toString()};
}
}
代码示例来源:origin: org.glassfish.main.admin/launcher
sysProps.remove(key);
if (OS.isDarwin() && System.getProperty("java.vm.vendor").equals("Apple Inc.")) {
代码示例来源:origin: org.glassfish.main.ejb/ejb-container
if (OS.isDarwin()) {
jdkDir = new File(jreHome);
} else {
代码示例来源:origin: org.glassfish.admin/cli-optional
if (OS.isDarwin()) {
return new String[]{
sJavaHome + File.separator + "bin" + File.separator + "java",
};
} else {
if (OS.isDarwin()) {
return new String[]{
sJavaHome + File.separator + "bin" + File.separator + "java",
代码示例来源:origin: org.glassfish.ejb/ejb-container
if( toolsJarPath == null && !OS.isDarwin()) {
_logger.log(Level.INFO, "[RMIC] tools.jar location was not found");
return;
代码示例来源:origin: org.glassfish.main.ejb/ejb-container
if( toolsJarPath == null && !OS.isDarwin()) {
_logger.log(Level.INFO, "[RMIC] tools.jar location was not found");
return;
代码示例来源:origin: org.glassfish.ejb/ejb-container
if (OS.isDarwin()) {
jdkDir = new File(jreHome);
} else {
代码示例来源:origin: org.glassfish.common/common-util
/**
* @param args the command line arguments
*/
public static void main(String args[])
{
System.out.println("os.version = " + System.getProperty("os.version"));
System.out.println("os.name = " + System.getProperty("os.name"));
System.out.println("os.arch = " + System.getProperty("os.arch"));
System.out.println("isUNIX() returned: " + isUNIX());
System.out.println("isWindows() returned: " + isWindows());
System.out.println("isWindowsForSure() returned: " + isWindowsForSure());
System.out.println("isSun() returned: " + isSun());
System.out.println("isLinux() returned: " + isLinux());
System.out.println("isDebianLinux() returned: " + isDebianLinux());
System.out.println("isFedoraLinux() returned: " + isFedoraLinux());
System.out.println("isGentooLinux() returned: " + isGentooLinux());
System.out.println("isKnoppixLinux() returned: " + isKnoppixLinux());
System.out.println("isMandrakeLinux() returned: " + isMandrakeLinux());
System.out.println("isMandrivaLinux() returned: " + isMandrivaLinux());
System.out.println("isRedHatLinux() returned: " + isRedHatLinux());
System.out.println("isSlackwareLinux() returned: " + isSlackwareLinux());
System.out.println("isSuSELinux() returned: " + isSuSELinux());
System.out.println("isUbuntuLinux() returned: " + isUbuntuLinux());
System.out.println("isSunX86() returned: " + isSunX86());
System.out.println("isSunSparc() returned: " + isSunSparc());
System.out.println("isDarwin() returned: " + isDarwin());
System.out.println("isSolaris10() returned: " + isSolaris10());
System.out.println("isAix() returned: " + isAix());
}
}
代码示例来源:origin: org.glassfish.main.common/common-util
/**
* @param args the command line arguments
*/
public static void main(String args[])
{
System.out.println("os.version = " + System.getProperty("os.version"));
System.out.println("os.name = " + System.getProperty("os.name"));
System.out.println("os.arch = " + System.getProperty("os.arch"));
System.out.println("isUNIX() returned: " + isUNIX());
System.out.println("isWindows() returned: " + isWindows());
System.out.println("isWindowsForSure() returned: " + isWindowsForSure());
System.out.println("isSun() returned: " + isSun());
System.out.println("isLinux() returned: " + isLinux());
System.out.println("isDebianLinux() returned: " + isDebianLinux());
System.out.println("isFedoraLinux() returned: " + isFedoraLinux());
System.out.println("isGentooLinux() returned: " + isGentooLinux());
System.out.println("isKnoppixLinux() returned: " + isKnoppixLinux());
System.out.println("isMandrakeLinux() returned: " + isMandrakeLinux());
System.out.println("isMandrivaLinux() returned: " + isMandrivaLinux());
System.out.println("isRedHatLinux() returned: " + isRedHatLinux());
System.out.println("isSlackwareLinux() returned: " + isSlackwareLinux());
System.out.println("isSuSELinux() returned: " + isSuSELinux());
System.out.println("isUbuntuLinux() returned: " + isUbuntuLinux());
System.out.println("isSunX86() returned: " + isSunX86());
System.out.println("isSunSparc() returned: " + isSunSparc());
System.out.println("isDarwin() returned: " + isDarwin());
System.out.println("isSolaris10() returned: " + isSolaris10());
System.out.println("isAix() returned: " + isAix());
}
}
代码示例来源:origin: eclipse-ee4j/glassfish
/**
* @param args the command line arguments
*/
public static void main(String args[])
{
System.out.println("os.version = " + System.getProperty("os.version"));
System.out.println("os.name = " + System.getProperty("os.name"));
System.out.println("os.arch = " + System.getProperty("os.arch"));
System.out.println("isUNIX() returned: " + isUNIX());
System.out.println("isWindows() returned: " + isWindows());
System.out.println("isWindowsForSure() returned: " + isWindowsForSure());
System.out.println("isSun() returned: " + isSun());
System.out.println("isLinux() returned: " + isLinux());
System.out.println("isDebianLinux() returned: " + isDebianLinux());
System.out.println("isFedoraLinux() returned: " + isFedoraLinux());
System.out.println("isGentooLinux() returned: " + isGentooLinux());
System.out.println("isKnoppixLinux() returned: " + isKnoppixLinux());
System.out.println("isMandrakeLinux() returned: " + isMandrakeLinux());
System.out.println("isMandrivaLinux() returned: " + isMandrivaLinux());
System.out.println("isRedHatLinux() returned: " + isRedHatLinux());
System.out.println("isSlackwareLinux() returned: " + isSlackwareLinux());
System.out.println("isSuSELinux() returned: " + isSuSELinux());
System.out.println("isUbuntuLinux() returned: " + isUbuntuLinux());
System.out.println("isSunX86() returned: " + isSunX86());
System.out.println("isSunSparc() returned: " + isSunSparc());
System.out.println("isDarwin() returned: " + isDarwin());
System.out.println("isSolaris10() returned: " + isSolaris10());
System.out.println("isAix() returned: " + isAix());
}
}
代码示例来源:origin: org.glassfish.main.admin/launcher
if (OS.isDarwin() && useLaunchCtl(System.getProperty("os.version")) &&
(!getInfo().isVerboseOrWatchdog())) {
内容来源于网络,如有侵权,请联系作者删除!