Interface Tool.Resolved
- All Superinterfaces:
Callable<FileCollection>,Named,Serializable,Tool
- Enclosing interface:
Tool
A resolved tool that has a classpath that can be readily used.
This interface extends Callable<FileCollection> so that it can be used directly in methods
such as Project.files(Object...) and ConfigurableFileCollection.from(Object...).
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Named
Named.NamerNested classes/interfaces inherited from interface net.minecraftforge.gradleutils.shared.Tool
Tool.Definition, Tool.Resolved -
Method Summary
Modifier and TypeMethodDescriptiondefault FileCollectioncall()Gets the classpath containing the tool to be used.Gets the Java launcher used to run AccessTransformers.Methods inherited from interface net.minecraftforge.gradleutils.shared.Tool
getJavaVersion, getMainClass, getName, getVersion, hasMainClass
-
Method Details
-
call
- Specified by:
callin interfaceCallable<FileCollection>
-
getClasspath
FileCollection getClasspath()Gets the classpath containing the tool to be used.- Returns:
- The classpath of the resolved tool
-
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:
-