Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for addOutputEventListener (0.63 sec)

  1. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/services/DefaultLoggingManagerTest.groovy

            final OutputEventListener listener = Mock(OutputEventListener.class)
    
            loggingManager.addOutputEventListener(listener)
    
            when:
            loggingManager.start();
    
            then:
            1 * loggingRouter.addOutputEventListener(listener)
    
            when:
            loggingManager.stop()
    
            then:
            loggingManager.removeOutputEventListener(listener)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/services/DefaultLoggingManager.java

                loggingOutput.removeStandardErrorListener(listener);
            }
        }
    
        @Override
        public void addOutputEventListener(OutputEventListener listener) {
            if (outputEventListeners.add(listener) && started) {
                loggingOutput.addOutputEventListener(listener);
            }
        }
    
        @Override
        public void removeOutputEventListener(OutputEventListener listener) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/sink/OutputEventRendererTest.groovy

            LogEvent ignored = event('ignored', LogLevel.DEBUG)
            LogEvent event = event('message', LogLevel.INFO)
    
            when:
            renderer.configure(LogLevel.INFO)
            renderer.addOutputEventListener(listener)
            renderer.onOutput(ignored)
            renderer.onOutput(event)
    
            then:
            1 * listener.onOutput({ it instanceof LogLevelChangeEvent && it.newLogLevel == LogLevel.INFO })
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 19:25:32 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/test/groovy/org/gradle/tooling/internal/provider/LoggingBridgingBuildActionExecuterTest.groovy

        def configuresLoggingWhileActionIsExecuting() {
            when:
            executer.execute(action, parameters, buildRequestContext)
    
            then:
            1 * loggingManager.addOutputEventListener(!null)
            1 * loggingManager.start()
            1 * target.execute(action, parameters, buildRequestContext)
            1 * loggingManager.stop()
        }
    
        def restoresLoggingWhenActionFails() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:54:56 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. platforms/core-runtime/launcher/src/main/java/org/gradle/tooling/internal/provider/LoggingBridgingBuildActionExecuter.java

            ProgressListenerVersion1 progressListener = actionParameters.getProgressListener();
            OutputEventListenerAdapter listener = new OutputEventListenerAdapter(progressListener);
            loggingManager.addOutputEventListener(listener);
            loggingManager.setLevelInternal(actionParameters.getBuildLogLevel());
            loggingManager.start();
            try {
                return delegate.execute(action, parameters, buildRequestContext);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:54:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/exec/LogToClient.java

                    }
                };
                LOGGER.debug(DaemonMessages.ABOUT_TO_START_RELAYING_LOGS);
                loggingOutput.addOutputEventListener(listener);
            }
    
            public void submit(OutputEvent event) {
                eventQueue.add(event);
            }
    
            @Override
            public void run() {
                try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/LoggingOutputInternal.java

         */
        void addStandardErrorListener(OutputStream outputStream);
    
        /**
         * Adds the given listener as a logging destination.
         */
        @UsedByScanPlugin
        void addOutputEventListener(OutputEventListener listener);
    
        /**
         * Adds the given listener.
         */
        @UsedByScanPlugin
        void removeOutputEventListener(OutputEventListener listener);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/ProgressLoggingFixture.groovy

                        }
                        loggingOutput = objects.newInstance(InternalServices).loggingOutput
                        println("ADDING " + this + " TO " + loggingOutput)
                        loggingOutput.addOutputEventListener(this)
                    }
    
                    @Override
                    synchronized void close() {
                        println("REMOVING " + this + " FROM " + loggingOutput)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  9. platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/WorkerDaemonClientsManager.java

            listenerManager.addListener(stopSessionScopeWorkers);
            this.logLevelChangeEventListener = new LogLevelChangeEventListener();
            loggingManager.addOutputEventListener(logLevelChangeEventListener);
            this.currentLogLevel = loggingManager.getLevel();
            this.memoryManager = memoryManager;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 19:54:37 UTC 2024
    - 10K bytes
    - Viewed (0)
  10. platforms/core-execution/worker-main/src/main/java/org/gradle/process/internal/worker/child/SystemApplicationClassLoaderWorker.java

            WorkerLoggingProtocol workerLoggingProtocol = connection.addOutgoing(WorkerLoggingProtocol.class);
            workerLogEventListener.setWorkerLoggingProtocol(workerLoggingProtocol);
            loggingManager.addOutputEventListener(workerLogEventListener);
        }
    
        private void configureWorkerJvmMemoryInfoEvents(WorkerServices services, ObjectConnection connection) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 11.9K bytes
    - Viewed (0)
Back to top