Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,251 for noOutputs (0.8 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/TaskCacheabilityReasonIntegrationTest.groovy

        }
    
    
        def "cacheability for a task with no outputs is NOT_ENABLED_FOR_TASK"() {
            buildFile """
                task noOutputs(type: NoOutputs) {}
            """
            when:
            withBuildCache().run "noOutputs"
            then:
            assertCachingDisabledFor NOT_ENABLED_FOR_TASK, "Caching has not been enabled for the task"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 16:59:01 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/IncrementalBuildIntegrationTest.groovy

        def outputFile = file('src.a.txt')
        inputs.files inputFile
        outputs.file outputFile
        outputs.upToDateWhen { isUpToDate.get() }
        doFirst {
            outputFile.text = "[\${inputFile.text}]"
        }
    }
    task noOutputs {
        inputs.file 'src.txt'
        outputs.upToDateWhen { isUpToDate.get() }
        doFirst { }
    }
    task nothing {
        outputs.upToDateWhen { isUpToDate.get() }
        doFirst { }
    }
    """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/api/internal/changedetection/changes/DefaultTaskExecutionModeResolver.java

            }
            // Only false if no declared outputs AND no Task.upToDateWhen spec. We force to true for incremental tasks.
            AndSpec<? super TaskInternal> upToDateSpec = task.getOutputs().getUpToDateSpec();
            if (!properties.hasDeclaredOutputs() && upToDateSpec.isEmpty()) {
                if (requiresInputChanges(task)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 03 11:19:27 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGXmlResultAndHtmlReportIntegrationTest.groovy

            }
    
            def noOutputs = executionResult.testClass("org.NoOutputsTest")
                    .assertTestCount(1, 0, 0)
                    .assertTestsExecuted("passing").assertTestPassed("passing")
    
            if (executionResult instanceof HtmlTestExecutionResult || outputAssociation == WITH_SUITE) {
                noOutputs
                        .assertStdout(equalTo(""))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 25 21:27:42 UTC 2023
    - 15.1K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/api/internal/changedetection/changes/DefaultTaskExecutionModeResolverTest.groovy

        def inputs = Stub(TaskInputsInternal)
        def outputs = Stub(TaskOutputsInternal)
        def taskProperties = Mock(TaskProperties)
        def task = Stub(TaskInternal)
        def upToDateSpec = Mock(AndSpec)
    
        def setup() {
            _ * task.getInputs() >> inputs
            _ * task.getOutputs() >> outputs
            _ * outputs.getUpToDateSpec() >> upToDateSpec
        }
    
        def "untracked"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/api/internal/changedetection/changes/DefaultTaskExecutionMode.java

            return INCREMENTAL;
        }
    
        /**
         * The execution mode when task did not declare any outputs.
         * The message will be `Task has not declared any outputs despite executing actions.`.
         */
        public static TaskExecutionMode noOutputs() {
            return NO_OUTPUTS;
        }
    
        /**
         * The execution mode when the command was run with --rerun-tasks.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 04 07:36:55 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  7. platforms/core-execution/execution/src/integTest/groovy/org/gradle/internal/execution/IncrementalExecutionIntegrationTest.groovy

        }
    
        def "up to date when task has no output files"() {
            when:
            def noOutputs = builder.withOutputFiles([:]).build()
            execute(noOutputs)
    
            then:
            upToDate noOutputs
        }
    
        def "invalid work is not executed"() {
            def invalidWork = builder
                .withValidator { validationContext ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 10:36:34 UTC 2024
    - 23.7K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/SnapshotTaskInputsOperationIntegrationTest.groovy

            then:
            operations.hasOperation(SnapshotTaskInputsBuildOperationType)
        }
    
        def "handles task with no outputs"() {
            when:
            buildScript """
                task noOutputs {
                    doLast {}
                }
            """
            succeeds('noOutputs', "--build-cache")
    
            then:
            def result = operations.first(SnapshotTaskInputsBuildOperationType).result
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/img/build-cache/overlapping-outputs-timeline.png

    overlapping-outputs-timeline.png...
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 94.8K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/img/build-cache/overlapping-outputs-input-comparison.png

    overlapping-outputs-input-comparison.png...
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 63.7K bytes
    - Viewed (0)
Back to top