Package org.gradle.jvm.toolchain
Interface JavaInstallationMetadata
-
public interface JavaInstallationMetadataMetadata about a Java tool obtained from a toolchain.- Since:
- 6.7
- See Also:
JavaLauncher,JavaCompiler,JavadocTool
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DirectorygetInstallationPath()The path to installation this tool belongs to.java.lang.StringgetJavaRuntimeVersion()Returns the full Java version (including the build number) of the JVM, as specified in itsjava.runtime.versionproperty.java.lang.StringgetJvmVersion()Returns the version of the JVM, as specified in itsjava.vm.versionproperty.JavaLanguageVersiongetLanguageVersion()Returns the language version of the JVM to which this tool belongsjava.lang.StringgetVendor()Returns a human-readable string for the vendor of the JVM.booleanisCurrentJvm()Returns true if this installation corresponds to the build JVM.
-
-
-
Method Detail
-
getLanguageVersion
@Input JavaLanguageVersion getLanguageVersion()
Returns the language version of the JVM to which this tool belongs- Returns:
- the
JavaLanguageVersion
-
getJavaRuntimeVersion
@Internal java.lang.String getJavaRuntimeVersion()
Returns the full Java version (including the build number) of the JVM, as specified in itsjava.runtime.versionproperty.- Returns:
- the full Java version of the JVM
- Since:
- 7.1
-
getJvmVersion
@Internal java.lang.String getJvmVersion()
Returns the version of the JVM, as specified in itsjava.vm.versionproperty.- Returns:
- the version of the JVM
- Since:
- 7.1
-
getVendor
@Internal java.lang.String getVendor()
Returns a human-readable string for the vendor of the JVM.- Returns:
- the vendor
- Since:
- 6.8
-
getInstallationPath
@Internal Directory getInstallationPath()
The path to installation this tool belongs to.This value matches what would be the content of
JAVA_HOMEfor the given installation.- Returns:
- the installation path
-
isCurrentJvm
@Internal @Incubating boolean isCurrentJvm()
Returns true if this installation corresponds to the build JVM.- Since:
- 8.0
-
-