Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for OutputOnShutdownHookProcess (0.18 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/process/internal/OutputOnShutdownHookProcess.java

     */
    
    package org.gradle.process.internal;
    
    import org.gradle.api.Action;
    import org.gradle.process.internal.worker.WorkerProcessContext;
    
    import java.io.Serializable;
    
    public class OutputOnShutdownHookProcess implements Action<WorkerProcessContext>, Serializable {
        @Override
        public void execute(WorkerProcessContext workerProcessContext) {
            Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 14 14:48:26 UTC 2017
    - 1.1K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/process/internal/WorkerProcessIntegrationTest.groovy

            stdout.stdOut == ""
            stdout.stdErr.contains("--broken")
        }
    
        def "handles output after worker messaging services are stopped"() {
            when:
            execute(worker(new OutputOnShutdownHookProcess()))
    
            then:
            noExceptionThrown()
            stdout.stdOut.contains("Goodbye, world!")
            stdout.stdErr == ""
        }
    
        def "handles output during worker shutdown"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 20 11:15:22 UTC 2023
    - 13.3K bytes
    - Viewed (0)
Back to top