Class GrailsBuildTask
java.lang.Object
com.atlassian.bamboo.plugins.grails.GrailsBuildTask
- All Implemented Interfaces:
InternalTaskType,TaskType
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringWhether we should run the "grails clean" before running other goals -
Constructor Summary
ConstructorsConstructorDescriptionGrailsBuildTask(ProcessService processService, TestCollationService testCollationService, EnvironmentVariableAccessor environmentVariableAccessor, CapabilityContext capabilityContext) -
Method Summary
Modifier and TypeMethodDescription@NotNull TaskResultexecute(@NotNull TaskContext taskContext) Execute the task@Nullable StringgetInstalledGrailsVersion(@NotNull String commandExecutable) Look up in grails command home directory and read the grails version number form the 'build.properties' filestatic @Nullable StringgetRequiredGrailsVersion(@NotNull CommonTaskContext taskContext) Look up for 'application.properties' file and return Grails version set in it.
-
Field Details
-
GRAILS_RUN_CLEAN_GOAL
Whether we should run the "grails clean" before running other goals- See Also:
-
-
Constructor Details
-
GrailsBuildTask
public GrailsBuildTask(ProcessService processService, TestCollationService testCollationService, EnvironmentVariableAccessor environmentVariableAccessor, CapabilityContext capabilityContext)
-
-
Method Details
-
execute
@NotNull public @NotNull TaskResult execute(@NotNull @NotNull TaskContext taskContext) throws TaskException Description copied from interface:TaskTypeExecute the task- Specified by:
executein interfaceTaskType- Returns:
- a
TaskResultrepresenting the status of the task execution - Throws:
TaskException
-
getRequiredGrailsVersion
@Nullable public static @Nullable String getRequiredGrailsVersion(@NotNull @NotNull CommonTaskContext taskContext) Look up for 'application.properties' file and return Grails version set in it.- Parameters:
taskContext- task context- Returns:
- String grails version or
nullif not found
-
getInstalledGrailsVersion
@Nullable public @Nullable String getInstalledGrailsVersion(@NotNull @NotNull String commandExecutable) Look up in grails command home directory and read the grails version number form the 'build.properties' file- Returns:
- String grails version or
nullif not found
-