Class TaskStepLoader

java.lang.Object
wtf.ranked.hytale.server.runner.step.TaskStepLoader

public final class TaskStepLoader extends Object
Orchestrator that transforms a list of Step classes into a linked Gradle task chain.

It registers each TaskStep as an internal task and uses a reduction algorithm to ensure that each step depends on the one preceding it, effectively creating a sequential execution queue.

  • Constructor Details

    • TaskStepLoader

      public TaskStepLoader()
  • Method Details

    • setup

      public void setup()
      Configures the task dependencies for a given Global task.

      This method performs the following:

      1. Registers each step as a unique task name (GlobalTask + StepName).
      2. Links tasks: Step B dependsOn Step A.
      3. Makes the Global task depend on the final step in the chain.