public abstract class AbstractShellBuildTask extends Object implements CommonTaskType
Modifier and Type | Field and Description |
---|---|
protected EnvironmentVariableAccessor |
environmentVariableAccessor |
protected ProcessService |
processService |
Constructor and Description |
---|
AbstractShellBuildTask(EnvironmentVariableAccessor environmentVariableAccessor,
ProcessService processService) |
Modifier and Type | Method and Description |
---|---|
@NotNull TaskResult |
execute(@NotNull CommonTaskContext taskContext)
Executes the task.
|
protected TaskResult |
execute(CommonTaskContext taskContext,
ShellConfig config) |
protected abstract ShellConfig |
getConfig(@NotNull CommonTaskContext taskContext) |
protected final EnvironmentVariableAccessor environmentVariableAccessor
protected final ProcessService processService
public AbstractShellBuildTask(EnvironmentVariableAccessor environmentVariableAccessor, ProcessService processService)
protected abstract ShellConfig getConfig(@NotNull @NotNull CommonTaskContext taskContext)
@NotNull public @NotNull TaskResult execute(@NotNull @NotNull CommonTaskContext taskContext) throws TaskException
CommonTaskType
execute
in interface CommonTaskType
TaskResult
representing the status of the task executionTaskException
protected TaskResult execute(CommonTaskContext taskContext, ShellConfig config) throws TaskException
TaskException
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.