Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for getAfterExecutionOutputState (0.46 sec)

  1. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/AfterExecutionResult.java

        }
    
        protected AfterExecutionResult(AfterExecutionResult parent) {
            this(parent, parent.getAfterExecutionOutputState().orElse(null));
        }
    
        /**
         * State after execution, or {@link Optional#empty()} if work is untracked.
         */
        public Optional<ExecutionOutputState> getAfterExecutionOutputState() {
            return Optional.ofNullable(afterExecutionOutputState);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:29 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/LoadPreviousExecutionStateStep.java

            // If we did not capture any outputs after execution, remove them from history
            context.getHistory()
                .ifPresent(history -> {
                    if (!result.getAfterExecutionOutputState().isPresent()) {
                        history.remove(context.getIdentity().getUniqueId());
                    }
                });
            return result;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:29 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/AssignImmutableWorkspaceStepTest.groovy

            }
            def delegateResult = Stub(CachingResult) {
                getExecution() >> Try.successful(delegateExecution)
                getDuration() >> delegateDuration
                getAfterExecutionOutputState() >> Optional.of(delegateOutputState)
            }
            def resolvedDelegateResult = Stub(Object)
    
            when:
            def result = step.execute(work, context)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 19 14:32:25 UTC 2024
    - 13K bytes
    - Viewed (0)
  4. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/BeforeExecutionState.java

         *
         * This includes snapshots for the whole output {@link org.gradle.api.file.FileCollection}.
         *
         * @see PreviousExecutionState#getOutputFilesProducedByWork()
         * @see AfterExecutionResult#getAfterExecutionOutputState()
         */
        ImmutableSortedMap<String, FileSystemSnapshot> getOutputFileLocationSnapshots();
    
        /**
         * Returns overlapping outputs if they are detected.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:29 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  5. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/UpToDateResult.java

        public UpToDateResult(AfterExecutionResult parent, ImmutableList<String> executionReasons) {
            super(parent);
            this.executionReasons = executionReasons;
            this.reusedOutputOriginMetadata = parent.getAfterExecutionOutputState()
                .filter(ExecutionOutputState::isReused)
                .map(ExecutionOutputState::getOriginMetadata)
                .orElse(null);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:29 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/HandleStaleOutputsStep.java

            if (work.shouldCleanupStaleOutputs()) {
                cleanupStaleOutputs(work, context);
            }
            R result = delegate.execute(work, context);
            result.getAfterExecutionOutputState()
                .ifPresent(afterExecutionState -> outputFilesRepository.recordOutputs(afterExecutionState.getOutputFilesProducedByWork().values()));
            return result;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 10:36:34 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  7. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/BuildCacheStep.java

                );
                return result;
            } catch (Exception storeFailure) {
                return new AfterExecutionResult(Result.failed(storeFailure, result.getDuration()), result.getAfterExecutionOutputState().orElse(null));
            }
        }
    
        /**
         * Stores the results of the given work in the build cache, unless storing was disabled for this execution or work was untracked.
         * <p>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 13:41:13 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  8. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/IdentityCacheStep.java

                    .getOutputAs(Object.class)
                    .map(Cast::<T>uncheckedNonnullCast),
                result
                    .getReusedOutputOriginMetadata()
                    .orElseGet(() -> result.getAfterExecutionOutputState()
                        .map(ExecutionOutputState::getOriginMetadata)
                        .orElse(null))
            );
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 08 16:30:23 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  9. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/AssignImmutableWorkspaceStepConcurrencyTest.groovy

        def delegateResult = Stub(CachingResult) {
            getDuration() >> Duration.ofSeconds(1)
            getExecution() >> Try.successful(Stub(ExecutionEngine.Execution))
            getAfterExecutionOutputState() >> Optional.of(new DefaultExecutionOutputState(true, ImmutableSortedMap.of(), originMetadata, false))
        }
    
        def work1Started = new CountDownLatch(1)
        def work1Finished = new CountDownLatch(1)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:46:25 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  10. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/StoreExecutionStateStep.java

            context.getHistory()
                .ifPresent(history -> context.getCachingState().getCacheKeyCalculatedState()
                    .flatMap(cacheKeyCalculatedState -> result.getAfterExecutionOutputState()
                        .filter(afterExecutionState -> result.getExecution().isSuccessful() || shouldPreserveFailedState(context, afterExecutionState))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 08 08:29:47 UTC 2024
    - 6.4K bytes
    - Viewed (0)
Back to top