Interface Tool.Definition
- All Superinterfaces:
Named
- Enclosing interface:
Tool
A definition of how a tool should be resolved and used by the plugin.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Named
Named.Namer -
Method Summary
Modifier and TypeMethodDescriptionGets the classpath to use for the tool.Gets the Java launcher used to run AccessTransformers.Gets the main class to invoke when running AccessTransformers.
-
Method Details
-
getClasspath
ConfigurableFileCollection getClasspath()Gets the classpath to use for the tool. If empty, the static default set by the plugin will be used.- Returns:
- The classpath
- API Note:
- This is not the dependency's classpath. This is the classpath used in
JavaExecSpec.setClasspath(FileCollection)to invoke AccessTransformers.
-
getMainClass
-
getJavaLauncher
Property<JavaLauncher> getJavaLauncher()Gets the Java launcher used to run AccessTransformers.
This can be easily acquired using Java toolchains.
- Returns:
- The property for the Java launcher
- See Also:
-