Java Code Examples for org.gradle.internal.os.OperatingSystem#isLinux()
The following examples show how to use
org.gradle.internal.os.OperatingSystem#isLinux() .
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: DefaultGradleDistribution.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public boolean worksWith(OperatingSystem os) { // 1.0-milestone-5 was broken where jna was not available //noinspection SimplifiableIfStatement if (isVersion("1.0-milestone-5")) { return os.isWindows() || os.isMacOsX() || os.isLinux(); } else { return true; } }
Example 2
Source File: DefaultGradleDistribution.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public boolean worksWith(OperatingSystem os) { // 1.0-milestone-5 was broken where jna was not available //noinspection SimplifiableIfStatement if (isVersion("1.0-milestone-5")) { return os.isWindows() || os.isMacOsX() || os.isLinux(); } else { return true; } }
Example 3
Source File: DefaultGradleDistribution.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public boolean worksWith(OperatingSystem os) { // 1.0-milestone-5 was broken where jna was not available //noinspection SimplifiableIfStatement if (isVersion("1.0-milestone-5")) { return os.isWindows() || os.isMacOsX() || os.isLinux(); } else { return true; } }
Example 4
Source File: DefaultGradleDistribution.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public boolean worksWith(OperatingSystem os) { // 1.0-milestone-5 was broken where jna was not available //noinspection SimplifiableIfStatement if (isVersion("1.0-milestone-5")) { return os.isWindows() || os.isMacOsX() || os.isLinux(); } else { return true; } }