- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 30 for previousExecutionState (0.4 sec)
-
platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/PreviousExecutionState.java
import org.gradle.internal.hash.HashCode; /** * Captures the state a {@link org.gradle.internal.execution.UnitOfWork} after the previous execution has finished. */ public interface PreviousExecutionState extends ExecutionInputState, ExecutionOutputState { /** * Returns the cache key from the previous execution. */ HashCode getCacheKey(); /** * {@inheritDoc} */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 31 09:46:47 UTC 2024 - 1.3K bytes - Viewed (0) -
platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/SkipEmptyIncrementalWorkStepTest.groovy
def previousExecutionState = Stub(PreviousExecutionState) def outputFileSnapshots = ImmutableSortedMap.of("output", outputFileSnapshot) _ * context.previousExecutionState >> Optional.of(previousExecutionState) _ * previousExecutionState.inputProperties >> ImmutableSortedMap.of() _ * previousExecutionState.inputFileProperties >> ImmutableSortedMap.of()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 22 09:46:24 UTC 2023 - 4.8K bytes - Viewed (0) -
platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/PreviousExecutionContext.java
import org.gradle.internal.execution.history.PreviousExecutionState; import javax.annotation.Nullable; import java.util.Optional; public class PreviousExecutionContext extends WorkspaceContext { private final PreviousExecutionState previousExecutionState; public PreviousExecutionContext(WorkspaceContext parent, @Nullable PreviousExecutionState previousExecutionState) { super(parent);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 22 09:41:28 UTC 2023 - 1.5K bytes - Viewed (0) -
platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/CaptureIncrementalStateBeforeExecutionStepTest.groovy
when: step.execute(work, context) then: _ * context.previousExecutionState >> Optional.of(previousExecutionState) 1 * previousExecutionState.inputProperties >> ImmutableSortedMap.of() 1 * previousExecutionState.inputFileProperties >> ImmutableSortedMap.of() 1 * previousExecutionState.outputFilesProducedByWork >> previousOutputSnapshots
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 08 10:36:34 UTC 2024 - 4.7K bytes - Viewed (0) -
platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/StoreExecutionStateStepTest.groovy
_ * context.previousExecutionState >> Optional.empty() then: interaction { expectStore(false, outputFilesProducedByWork) } 0 * _ } def "output snapshots are stored after failed execution with changed outputs"() { def previousExecutionState = Mock(PreviousExecutionState) when: def result = step.execute(work, context)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Feb 08 08:29:47 UTC 2024 - 6.8K bytes - Viewed (0) -
platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/SkipUpToDateStep.java
} @SuppressWarnings("OptionalGetWithoutIsPresent") PreviousExecutionState previousExecutionState = context.getPreviousExecutionState().get(); ExecutionOutputState executionOutputState = new DefaultExecutionOutputState(true, previousExecutionState.getOutputFilesProducedByWork(), previousExecutionState.getOriginMetadata(), true);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 26 16:02:34 UTC 2024 - 3.8K bytes - Viewed (0) -
platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/ResolveIncrementalCachingStateStepTest.groovy
_ * context.beforeExecutionState >> Optional.of(beforeExecutionState) _ * executionStateChanges.changeDescriptions >> ImmutableList.of() _ * context.previousExecutionState >> Optional.of(previousExecutionState) _ * previousExecutionState.cacheKey >> cacheKey _ * context.validationProblems >> ImmutableList.of() 1 * delegate.execute(work, { CachingContext context ->
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Feb 08 08:29:47 UTC 2024 - 4.5K bytes - Viewed (0) -
platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/ResolveChangesStepTest.groovy
_ * context.previousExecutionState >> Optional.of(previousExecutionState) _ * context.validationProblems >> ImmutableList.of(Mock(Problem)) _ * context.previousExecutionState >> Optional.empty() 0 * _ } def "provides input file changes when history is available"() { def previousExecutionState = Mock(PreviousExecutionState) def changes = Mock(ExecutionStateChanges)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 26 16:02:34 UTC 2024 - 6K bytes - Viewed (0) -
platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/LoadPreviousExecutionStateStepTest.groovy
then: 1 * executionHistoryStore.load(uniqueId) >> Optional.of(previousExecutionState) then: result == delegateResult 1 * delegate.execute(work, _) >> { UnitOfWork work, PreviousExecutionContext previousExecutionContext -> assert previousExecutionContext.previousExecutionState.get() == previousExecutionState return delegateResult } then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 22 09:41:29 UTC 2023 - 2.1K bytes - Viewed (0) -
platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/LoadPreviousExecutionStateStep.java
Identity identity = context.getIdentity(); PreviousExecutionState previousExecutionState = context.getHistory() .flatMap(history -> history.load(identity.getUniqueId())) .orElse(null); R result = delegate.execute(work, new PreviousExecutionContext(context, previousExecutionState)); // If we did not capture any outputs after execution, remove them from history
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 22 09:41:29 UTC 2023 - 1.9K bytes - Viewed (0)