public class GrailsBuildTask extends Object implements TaskType
Modifier and Type | Field and Description |
---|---|
static String |
GRAILS_RUN_CLEAN_GOAL
Whether we should run the "grails clean" before running other goals
|
Constructor and Description |
---|
GrailsBuildTask(ProcessService processService,
TestCollationService testCollationService,
EnvironmentVariableAccessor environmentVariableAccessor,
CapabilityContext capabilityContext) |
Modifier and Type | Method and Description |
---|---|
@NotNull TaskResult |
execute(@NotNull TaskContext taskContext)
Execute the task
|
@Nullable String |
getInstalledGrailsVersion(@NotNull String commandExecutable)
Look up in grails command home directory and read the grails version number form the 'build.properties' file
|
static @Nullable String |
getRequiredGrailsVersion(@NotNull CommonTaskContext taskContext)
Look up for 'application.properties' file and return Grails version set in it.
|
public static final String GRAILS_RUN_CLEAN_GOAL
public GrailsBuildTask(ProcessService processService, TestCollationService testCollationService, EnvironmentVariableAccessor environmentVariableAccessor, CapabilityContext capabilityContext)
@NotNull public @NotNull TaskResult execute(@NotNull @NotNull TaskContext taskContext) throws TaskException
TaskType
execute
in interface TaskType
TaskResult
representing the status of the task executionTaskException
@Nullable public static @Nullable String getRequiredGrailsVersion(@NotNull @NotNull CommonTaskContext taskContext)
taskContext
- task contextnull
if not foundCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.