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 |
---|---|
TaskResult |
execute(TaskContext taskContext)
Execute the task
|
String |
getInstalledGrailsVersion(String commandExecutable)
Look up in grails command home directory and read the grails version number form the 'build.properties' file
|
static String |
getRequiredGrailsVersion(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 TaskResult execute(@NotNull TaskContext taskContext) throws TaskException
TaskType
execute
in interface TaskType
TaskResult
representing the status of the task executionTaskException
@Nullable public static String getRequiredGrailsVersion(@NotNull CommonTaskContext taskContext)
taskContext
- task contextnull
if not foundCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.