Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for toBeforeEvaluate (0.26 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/project/ProjectStateInternalSpec.groovy

        def "to string representation"() {
            expect:
            stateString {} == "NOT EXECUTED"
            stateString { toBeforeEvaluate() } == "EXECUTING"
            stateString { toBeforeEvaluate(); toEvaluate() } == "EXECUTING"
            stateString { toBeforeEvaluate(); toEvaluate(); toAfterEvaluate() } == "EXECUTING"
            stateString { configured() } == "EXECUTED"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 12 07:52:07 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/internal/service/scopes/ProjectBackedPropertyHostTest.groovy

        }
    
        def "disallows read before completion when property has no producer"() {
            expect:
            host.beforeRead(null) == "configuration of <project> has not completed yet"
            state.toBeforeEvaluate()
            host.beforeRead(null) == "configuration of <project> has not completed yet"
            state.toEvaluate()
            host.beforeRead(null) == "configuration of <project> has not completed yet"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Aug 28 21:50:20 UTC 2022
    - 3K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/api/internal/project/ProjectStateInternal.java

        }
    
        public boolean isUnconfigured() {
            return state == State.UNCONFIGURED;
        }
    
        public boolean hasCompleted() {
            return state == State.CONFIGURED;
        }
    
        public void toBeforeEvaluate() {
            assert state == State.UNCONFIGURED;
            state = State.IN_BEFORE_EVALUATE;
        }
    
        public void toEvaluate() {
            assert state == State.IN_BEFORE_EVALUATE;
            state = State.IN_EVALUATE;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 12 07:52:05 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/configuration/project/LifecycleProjectEvaluatorTest.groovy

            then:
            state.executed
            0 * delegate._
    
            and:
            operations.empty
        }
    
        void "nothing happens if project is being configured now"() {
            given:
            state.toBeforeEvaluate()
    
            when:
            evaluate()
    
            then:
            state.configuring
            0 * delegate._
    
            and:
            operations.empty
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/configuration/project/LifecycleProjectEvaluator.java

                project.getOwner().applyToMutableState(p -> {
                    // Note: beforeEvaluate and afterEvaluate ops do not throw, instead mark state as failed
                    try {
                        state.toBeforeEvaluate();
                        buildOperationRunner.run(new NotifyBeforeEvaluate(project, state));
    
                        if (!state.hasFailure()) {
                            state.toEvaluate();
                            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top