Class TaskStepLoader

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

@NullMarked 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(GlobalRunningTask runningTask)
      Configures the task dependencies for a given Global task to create a sequential execution pipeline.

      This method:

      1. Resolves all build dependencies and internal steps into a single ordered list.
      2. Links the task chain so that each step depends on the preceding one (Step A -> Step B).
      3. Ensures the GlobalRunningTask executes only after the entire chain completes.