Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for runInWorker (0.14 sec)

  1. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorLoggingIntegrationTest.groovy

            buildFile << """
                task runInWorker(type: WorkerTask) {
                    isolationMode = $isolationMode
                }
            """.stripIndent()
    
            when:
            args("--debug")
            def gradle = executer.withTasks("runInWorker").start()
    
            then:
            gradle.waitForFinish()
    
            and:
    Registered: 2024-06-12 18:38
    - Last Modified: 2023-09-22 09:36
    - 5.9K bytes
    - Viewed (0)
  2. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorServicesIntegrationTest.groovy

            fixture.withWorkActionClassInBuildScript()
    
            buildFile << """
                task runInWorker(type: WorkerTask) {
                    isolationMode = $isolationMode
                }
            """
            file("foo").text = "foo"
    
            expect:
            succeeds("runInWorker")
    
            and:
            assertWorkerExecuted("runInWorker")
    
            and:
            file("bar/foo").text == "foo"
            file("baz/foo").text == "foo"
    Registered: 2024-06-12 18:38
    - Last Modified: 2023-09-22 09:36
    - 12.4K bytes
    - Viewed (0)
  3. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorErrorHandlingIntegrationTest.groovy

            fixture.withWorkActionClassInBuildSrc()
    
            buildFile << """
                task runInWorker(type: WorkerTask) {
                    isolationMode = $isolationMode
                    workActionClass = ${failureExecution.name}.class
                }
            """.stripIndent()
    
            when:
            fails("runInWorker")
    
            then:
            failureHasCause("A failure occurred while executing ${failureExecution.name}")
    
    Registered: 2024-06-12 18:38
    - Last Modified: 2023-09-22 09:36
    - 14.1K bytes
    - Viewed (0)
  4. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorNestingIntegrationTest.groovy

                ${getWorkActionWithNesting("noIsolation", "noIsolation")}
                task runInWorker(type: NestingWorkerTask) {
                    waitForChildren = true
                }
            """.stripIndent()
    
            when:
            succeeds("runInWorker")
    
            then:
            result.groupedOutput.task(':runInWorker').output.contains("Hello World")
        }
    
    Registered: 2024-06-12 18:38
    - Last Modified: 2023-09-22 09:36
    - 9.5K bytes
    - Viewed (0)
  5. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorIntegrationTest.groovy

                    }
                }
    
                task runInWorker(type: WorkerTask) {
                    isolationMode = $isolationMode
                }
            """
    
            when:
            succeeds("runInWorker")
    
            then:
            assertWorkerExecuted("runInWorker")
    
            when:
            buildFile << """
                runInWorker {
                    foo = new AnotherFoo()
                }
    Registered: 2024-06-12 18:38
    - Last Modified: 2024-05-06 13:00
    - 31K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r51/WorkItemProgressEventCrossVersionSpec.groovy

            buildFile << """
                task runInWorker(type: WorkerTask)
            """
        }
    
        def "reports typed work item progress events as descendants of tasks"() {
            when:
            def events = runBuild("runInWorker", EnumSet.allOf(OperationType))
    
            then:
            def taskOperation = events.operation("Task :runInWorker")
            taskOperation.assertIsTask()
    Registered: 2024-06-12 18:38
    - Last Modified: 2024-05-16 10:10
    - 6K bytes
    - Viewed (0)
  7. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerDaemonLoggingIntegrationTest.groovy

            }.unique()
            taskOperations.size() == 2
            taskOperations.collect {it.displayName }.containsAll(['Task :runInWorker', 'Task :runInWorker2'])
    
            and:
            logOperations.every { operation -> operation.progress.size() == 1000 }
    
            and:
            assertSameDaemonWasUsed("runInWorker", "runInWorker2")
        }
    Registered: 2024-06-12 18:38
    - Last Modified: 2023-09-22 09:36
    - 4.7K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r35/BuildProgressCrossVersionSpec.groovy

                ProjectConnection connection ->
                    connection.newBuild()
                        .forTasks('runInWorker')
                        .addProgressListener(events)
                        .run()
            }
    
            events.assertIsABuild()
            events.operation('Task :runInWorker').descendant('MyWorkerAction')
        }
    Registered: 2024-06-12 18:38
    - Last Modified: 2024-05-16 10:10
    - 11.1K bytes
    - Viewed (0)
  9. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerDaemonFailureLoggingIntegrationTest.groovy

            expect:
            executer.withStackTraceChecksDisabled()
            fails("runInWorker")
    
            and:
            def taskActionOperation = buildOperations.first(ExecuteTaskActionBuildOperationType) {
                it.displayName == "Execute executeTask for :runInWorker"
            }
            taskActionOperation != null
            def outputProgress = taskActionOperation.progress(StyledTextOutputEvent)
    Registered: 2024-06-12 18:38
    - Last Modified: 2023-09-22 09:36
    - 2.4K bytes
    - Viewed (0)
  10. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerDaemonIntegrationTest.groovy

            buildFile << """
                task runInWorker(type: WorkerTask) {
                    isolationMode = 'processIsolation'
                    workActionClass = ${workActionThatPrintsWorkingDirectory.name}.class
                }
            """
    
            when:
            args("--info")
            def gradle = executer.withTasks("runInWorker").start()
    
            then:
            gradle.waitForFinish()
    
            and:
    Registered: 2024-06-12 18:38
    - Last Modified: 2023-09-22 09:36
    - 8.6K bytes
    - Viewed (0)
Back to top