Package org.gradle.jvm.toolchain
Class JvmVendorSpec
java.lang.Object
org.gradle.jvm.toolchain.JvmVendorSpec
Represents a filter for a vendor of a Java Virtual Machine implementation.
- Since:
- 6.8
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JvmVendorSpecA constant for using Eclipse Adoptium as the JVM vendor.static final JvmVendorSpecstatic final JvmVendorSpecstatic final JvmVendorSpecstatic final JvmVendorSpecstatic final JvmVendorSpecstatic final JvmVendorSpecA constant for using GraalVM as the JVM vendor.static final JvmVendorSpecstatic final JvmVendorSpecstatic final JvmVendorSpecDeprecated.static final JvmVendorSpecA constant for using JetBrains Runtime as the JVM vendor.static final JvmVendorSpecA constant for using Microsoft OpenJDK as the JVM vendor.static final JvmVendorSpecstatic final JvmVendorSpecstatic final JvmVendorSpecA constant for using Tencent Kona JDK as the JVM vendor. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanDetermines if the vendor passed as an argument matches this spec.static JvmVendorSpecReturns a vendor spec that matches a VM by its vendor.static JvmVendorSpecReturns a vendor spec that matches a VM by its vendor.
-
Field Details
-
ADOPTIUM
A constant for using Eclipse Adoptium as the JVM vendor.- Since:
- 7.4
-
ADOPTOPENJDK
-
AMAZON
-
APPLE
-
AZUL
-
BELLSOFT
-
GRAAL_VM
A constant for using GraalVM as the JVM vendor.- Since:
- 7.1
-
HEWLETT_PACKARD
-
IBM
-
IBM_SEMERU
Deprecated.We are grouping all IBM runtimes under the 'IBM' vendor, won't keep a separate constant for Semeru ones. Just use 'IBM' instead.A constant for using IBM Semeru Runtimes as the JVM vendor.- Since:
- 7.4
-
JETBRAINS
A constant for using JetBrains Runtime as the JVM vendor.- Since:
- 8.4
-
MICROSOFT
A constant for using Microsoft OpenJDK as the JVM vendor.- Since:
- 7.3
-
ORACLE
-
SAP
-
TENCENT
A constant for using Tencent Kona JDK as the JVM vendor.- Since:
- 8.6
-
-
Constructor Details
-
JvmVendorSpec
public JvmVendorSpec()
-
-
Method Details
-
matches
Determines if the vendor passed as an argument matches this spec.- Parameters:
vendor- the vendor to test- Returns:
- true if this spec matches the vendor
- Since:
- 7.6
-
matching
Returns a vendor spec that matches a VM by its vendor.A VM is determined eligible if the system property
java.vendorcontains the given match string. The comparison is done case-insensitive.- Parameters:
match- the sequence to search for- Returns:
- a new filter object
-
of
Returns a vendor spec that matches a VM by its vendor.The passed in vendor will first be matched against the known vendors. If there is a match, then the vendor spec matching the known vendor will be returned.
- Parameters:
vendor- the vendor string to match- Returns:
- a
JvmVendorSpecthat matches the given vendor - Since:
- 8.13
- See Also:
-
IBM' vendor, won't keep a separate constant for Semeru ones.