Java Code Examples for org.gradle.internal.os.OperatingSystem#current()
The following examples show how to use
org.gradle.internal.os.OperatingSystem#current() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Jvm.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
static Jvm create(File javaBase) { String vendor = System.getProperty("java.vm.vendor"); if (vendor.toLowerCase().startsWith("apple inc.")) { return new AppleJvm(OperatingSystem.current(), javaBase); } if (vendor.toLowerCase().startsWith("ibm corporation")) { return new IbmJvm(OperatingSystem.current(), javaBase); } return new Jvm(OperatingSystem.current(), javaBase); }
Example 2
Source File: Jvm.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
static Jvm create(File javaBase) { String vendor = System.getProperty("java.vm.vendor"); if (vendor.toLowerCase().startsWith("apple inc.")) { return new AppleJvm(OperatingSystem.current(), javaBase); } if (vendor.toLowerCase().startsWith("ibm corporation")) { return new IbmJvm(OperatingSystem.current(), javaBase); } return new Jvm(OperatingSystem.current(), javaBase); }
Example 3
Source File: Jvm.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
static Jvm create(File javaBase) { String vendor = System.getProperty("java.vm.vendor"); if (vendor.toLowerCase().startsWith("apple inc.")) { return new AppleJvm(OperatingSystem.current(), javaBase); } if (vendor.toLowerCase().startsWith("ibm corporation")) { return new IbmJvm(OperatingSystem.current(), javaBase); } return new Jvm(OperatingSystem.current(), javaBase); }
Example 4
Source File: Jvm.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
static Jvm create(File javaBase) { String vendor = System.getProperty("java.vm.vendor"); if (vendor.toLowerCase().startsWith("apple inc.")) { return new AppleJvm(OperatingSystem.current(), javaBase); } if (vendor.toLowerCase().startsWith("ibm corporation")) { return new IbmJvm(OperatingSystem.current(), javaBase); } return new Jvm(OperatingSystem.current(), javaBase); }
Example 5
Source File: NativeServices.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
protected OperatingSystem createOperatingSystem() { return OperatingSystem.current(); }
Example 6
Source File: UnsupportedEnvironment.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
private NativeIntegrationException notSupported() { return new NativeIntegrationUnavailableException("We don't support this operating system: " + OperatingSystem.current()); }
Example 7
Source File: NativeServices.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
protected OperatingSystem createOperatingSystem() { return OperatingSystem.current(); }
Example 8
Source File: UnsupportedEnvironment.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
private NativeIntegrationException notSupported() { return new NativeIntegrationUnavailableException("We don't support this operating system: " + OperatingSystem.current()); }
Example 9
Source File: NativeServices.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
protected OperatingSystem createOperatingSystem() { return OperatingSystem.current(); }
Example 10
Source File: UnsupportedEnvironment.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
private NativeIntegrationException notSupported() { return new NativeIntegrationUnavailableException("We don't support this operating system: " + OperatingSystem.current()); }
Example 11
Source File: NativeServices.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
protected OperatingSystem createOperatingSystem() { return OperatingSystem.current(); }
Example 12
Source File: UnsupportedEnvironment.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
private NativeIntegrationException notSupported() { return new NativeIntegrationUnavailableException("We don't support this operating system: " + OperatingSystem.current()); }