Klasse JvmVendorSpec

java.lang.Object
org.gradle.jvm.toolchain.JvmVendorSpec

public abstract class JvmVendorSpec extends Object
Represents a filter for a vendor of a Java Virtual Machine implementation.
Seit:
6.8
  • Felddetails

  • Konstruktordetails

    • JvmVendorSpec

      public JvmVendorSpec()
  • Methodendetails

    • matches

      @Incubating public abstract boolean matches(String vendor)
      Determines if the vendor passed as an argument matches this spec.
      Parameter:
      vendor - the vendor to test
      Gibt zurück:
      true if this spec matches the vendor
      Seit:
      7.6
    • matching

      public static JvmVendorSpec matching(String match)
      Returns a vendor spec that matches a VM by its vendor.

      A VM is determined eligible if the system property java.vendor contains the given match string. The comparison is done case-insensitive.

      Parameter:
      match - the sequence to search for
      Gibt zurück:
      a new filter object
    • of

      @Incubating public static JvmVendorSpec of(String vendor)
      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.

      Parameter:
      vendor - the vendor string to match
      Gibt zurück:
      a JvmVendorSpec that matches the given vendor
      Seit:
      8.13
      Siehe auch: