Package org.gradle.jvm.toolchain
Schnittstelle JavaToolchainService
@ServiceScope(org.gradle.internal.service.scopes.Scope.Project.class)
public interface JavaToolchainService
Allows to query for toolchain managed tools, like
JavaCompiler, JavaLauncher and JavadocTool.
An instance of this service is available for injection into tasks, plugins and other types.
- Seit:
- 6.7
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcompilerFor(Action<? super JavaToolchainSpec> config) Obtain aJavaCompilermatching theJavaToolchainSpec, as configured by the provided action.compilerFor(JavaToolchainSpec spec) Obtain aJavaCompilermatching theJavaToolchainSpec.javadocToolFor(Action<? super JavaToolchainSpec> config) Obtain aJavadocToolmatching theJavaToolchainSpec, as configured by the provided action.Obtain aJavadocToolmatching theJavaToolchainSpec.launcherFor(Action<? super JavaToolchainSpec> config) Obtain aJavaLaunchermatching theJavaToolchainSpec, as configured by the provided action.launcherFor(JavaToolchainSpec spec) Obtain aJavaLaunchermatching theJavaToolchainSpec.
-
Methodendetails
-
compilerFor
Obtain aJavaCompilermatching theJavaToolchainSpec, as configured by the provided action.- Parameter:
config- The configuration of theJavaToolchainSpec- Gibt zurück:
- A
Provider<JavaCompiler>
-
compilerFor
Obtain aJavaCompilermatching theJavaToolchainSpec.- Parameter:
spec- TheJavaToolchainSpec- Gibt zurück:
- A
Provider<JavaCompiler>
-
launcherFor
Obtain aJavaLaunchermatching theJavaToolchainSpec, as configured by the provided action.- Parameter:
config- The configuration of theJavaToolchainSpec- Gibt zurück:
- A
Provider<JavaLauncher>
-
launcherFor
Obtain aJavaLaunchermatching theJavaToolchainSpec.- Parameter:
spec- TheJavaToolchainSpec- Gibt zurück:
- A
Provider<JavaLauncher>
-
javadocToolFor
Obtain aJavadocToolmatching theJavaToolchainSpec, as configured by the provided action.- Parameter:
config- The configuration of theJavaToolchainSpec- Gibt zurück:
- A
Provider<JavadocTool>
-
javadocToolFor
Obtain aJavadocToolmatching theJavaToolchainSpec.- Parameter:
spec- TheJavaToolchainSpec- Gibt zurück:
- A
Provider<JavadocTool>
-