Interface TaskStep
- All Superinterfaces:
Comparable<org.gradle.api.Task>, org.gradle.api.plugins.ExtensionAware, GradleRunningTask, org.gradle.api.Named, org.gradle.api.Task
- All Known Implementing Classes:
DownloadModStep, DownloadServerAssetStep, LaunchServerStep, PrepareDownloaderStep, PrepareReinstallStep, TaskStepDefault, TaskStepExec
Represents an atomic unit of work within a boot lifecycle.
Steps wrap logic into a TaskStep.Options record, allowing for
standardized execution of setup ("start") and cleanup ("stop") logic.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordConfiguration for step execution.Nested classes/interfaces inherited from interface org.gradle.api.Named
org.gradle.api.Named.Namer -
Field Summary
Fields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE -
Method Summary
Modifier and TypeMethodDescription@NonNull TaskStep.Optionsoptions()default voidrunStep()Standard execution flow for the step.Methods inherited from interface Comparable
compareToMethods inherited from interface org.gradle.api.plugins.ExtensionAware
getExtensionsMethods inherited from interface GradleRunningTask
getHytalePluginExtension, runMethods inherited from interface org.gradle.api.Task
configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, doNotTrackState, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, notCompatibleWithConfigurationCache, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
-
Method Details
-
runStep
default void runStep()Standard execution flow for the step.Runs the start logic, followed by the optional stop logic.
-
options
@NonNull TaskStep.Options options()- Returns:
- the configuration options for this step's execution
-