Class DefaultTaskSuccessResult

    • Constructor Detail

      • DefaultTaskSuccessResult

        public DefaultTaskSuccessResult​(long startTime,
                                        long endTime,
                                        boolean upToDate,
                                        boolean fromCache,
                                        TaskExecutionDetails taskExecutionDetails)
    • Method Detail

      • isUpToDate

        public boolean isUpToDate()
        Description copied from interface: TaskSuccessResult
        Returns whether this task was up-to-date.
        Specified by:
        isUpToDate in interface TaskSuccessResult
        Returns:
        true if this task was up-to-date
      • isFromCache

        public boolean isFromCache()
        Description copied from interface: TaskSuccessResult
        Returns whether the output for this task was pulled from a build cache when using task output caching.

        NOTE: This will always be false if the Gradle version does not support task output caching.

        Specified by:
        isFromCache in interface TaskSuccessResult
        Returns:
        true if the output for this task was from a build cache
      • isIncremental

        public boolean isIncremental()
        Description copied from interface: TaskExecutionResult
        Returns whether this task was executed incrementally.
        Specified by:
        isIncremental in interface TaskExecutionResult
        Returns:
        true if this task was executed incrementally
      • getExecutionReasons

        @Nullable
        public java.util.List<java.lang.String> getExecutionReasons()
        Description copied from interface: TaskExecutionResult
        Returns the reasons why this task was executed.
        Specified by:
        getExecutionReasons in interface TaskExecutionResult
        Returns:
        the reasons why this task was executed; an empty list indicates the task was up-to-date; null that it failed before up-to-date checks had been performed.