Package org.gradle.jvm.toolchain
Interface JavaInstallationMetadata
public interface JavaInstallationMetadata
Metadata about a Java tool obtained from a toolchain.
- Since:
- 6.7
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionThe path to installation this tool belongs to.Returns the full Java version (including the build number) of the JVM, as specified in itsjava.runtime.version
property.Returns the version of the JVM, as specified in itsjava.vm.version
property.Returns the language version of the JVM to which this tool belongsReturns a human-readable string for the vendor of the JVM.boolean
Returns true if this installation corresponds to the build JVM.
-
Method Details
-
getLanguageVersion
Returns the language version of the JVM to which this tool belongs- Returns:
- the
JavaLanguageVersion
-
getJavaRuntimeVersion
Returns the full Java version (including the build number) of the JVM, as specified in itsjava.runtime.version
property.- Returns:
- the full Java version of the JVM
- Since:
- 7.1
-
getJvmVersion
Returns the version of the JVM, as specified in itsjava.vm.version
property.- Returns:
- the version of the JVM
- Since:
- 7.1
-
getVendor
Returns a human-readable string for the vendor of the JVM.- Returns:
- the vendor
- Since:
- 6.8
-
getInstallationPath
The path to installation this tool belongs to.This value matches what would be the content of
JAVA_HOME
for the given installation.- Returns:
- the installation path
-
isCurrentJvm
Returns true if this installation corresponds to the build JVM.- Since:
- 8.0
-