Class 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.
Since:
6.8
  • Field Details

  • Constructor Details

    • JvmVendorSpec

      public JvmVendorSpec()
  • Method Details

    • matches

      @Incubating public abstract boolean matches(String vendor)
      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

      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.

      Parameters:
      match - the sequence to search for
      Returns:
      a new filter object