Class TaskStepLoader
java.lang.Object
wtf.ranked.hytale.server.runner.step.TaskStepLoader
Orchestrator that transforms a sequence of
TaskStep classes into a linked Gradle task chain.
This loader implements a sequential execution pipeline by configuring task dependencies.
It ensures that build prerequisites are satisfied before step execution, and that
individual steps are run in the precise order defined by the GlobalRunningTask.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetup(GlobalRunningTask runningTask) Configures the task dependencies for a givenGlobalRunningTaskto create a sequential execution pipeline.
-
Constructor Details
-
TaskStepLoader
public TaskStepLoader()
-
-
Method Details
-
setup
Configures the task dependencies for a givenGlobalRunningTaskto create a sequential execution pipeline.The method first collects prerequisite build tasks from the
HytalePluginExtensionand mapsTaskStepclasses intoTaskProviderinstances. These are combined into a single flat list.Using a reduction algorithm, the method links these tasks sequentially: each task is configured to depend on the one immediately preceding it in the list via
current.dependsOn(previous). Finally, theGlobalRunningTaskitself is configured to depend on the last task in this chain.- Parameters:
runningTask- the global task orchestrating the lifecycle
-