Package dev.architectury.loom.forge.tool
Class ForgeToolService
java.lang.Object
net.fabricmc.loom.util.service.Service<ForgeToolService.Options>
dev.architectury.loom.forge.tool.ForgeToolService
A service that can execute Forge tools in tasks and during project configuration.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ServiceType<ForgeToolService.Options, ForgeToolService> -
Constructor Summary
ConstructorsConstructorDescriptionForgeToolService(ForgeToolService.Options options, ServiceFactory serviceFactory) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.gradle.api.provider.Provider<ForgeToolService.Options> createOptions(org.gradle.api.Project project) org.gradle.process.ExecResultexec(org.gradle.api.Action<? super ForgeToolExecutor.Settings> configurator) Executes the tool specified in the spec.Methods inherited from class net.fabricmc.loom.util.service.Service
getOptions, getServiceFactory
-
Field Details
-
TYPE
-
-
Constructor Details
-
ForgeToolService
-
-
Method Details
-
createOptions
public static org.gradle.api.provider.Provider<ForgeToolService.Options> createOptions(org.gradle.api.Project project) -
exec
public org.gradle.process.ExecResult exec(org.gradle.api.Action<? super ForgeToolExecutor.Settings> configurator) Executes the tool specified in the spec.- Parameters:
configurator- an action that configures the spec- Returns:
- the execution result
-