Class GrailsBuildTask

    • Field Detail

      • GRAILS_RUN_CLEAN_GOAL

        public static final String GRAILS_RUN_CLEAN_GOAL
        Whether we should run the "grails clean" before running other goals
        See Also:
        Constant Field Values
    • Method Detail

      • 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 null if 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 null if not found