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 |
---|---|
TaskResult |
execute(CommonTaskContext taskContext)
Executes the task.
|
protected TaskResult |
execute(CommonTaskContext taskContext,
ShellConfig config) |
protected abstract ShellConfig |
getConfig(CommonTaskContext taskContext) |
protected final EnvironmentVariableAccessor environmentVariableAccessor
protected final ProcessService processService
public AbstractShellBuildTask(EnvironmentVariableAccessor environmentVariableAccessor, ProcessService processService)
protected abstract ShellConfig getConfig(@NotNull CommonTaskContext taskContext)
@NotNull public TaskResult execute(@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 © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.