Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for watchBody (0.17 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go

    )
    
    func stringBody(body string) io.ReadCloser {
    	return io.NopCloser(bytes.NewReader([]byte(body)))
    }
    
    func watchBody(events ...watch.Event) string {
    	buf := &bytes.Buffer{}
    	codec := corev1Codec
    	enc := restclientwatch.NewEncoder(streaming.NewEncoder(buf, codec), codec)
    	for _, e := range events {
    		enc.Encode(&e)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 11:58:41 UTC 2023
    - 56.1K bytes
    - Viewed (0)
  2. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/registry/WatchMode.java

     * limitations under the License.
     */
    
    package org.gradle.internal.watch.registry;
    
    import org.slf4j.Logger;
    import org.slf4j.helpers.NOPLogger;
    
    public enum WatchMode {
        ENABLED(true, "enabled") {
            @Override
            public Logger loggerForWarnings(Logger currentLogger) {
                return currentLogger;
            }
        },
        DEFAULT(true, "enabled if available") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:38:01 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/vfs/impl/WatchingVirtualFileSystemTest.groovy

            watchingVirtualFileSystem.afterBuildStarted(WatchMode.ENABLED, VfsLogging.NORMAL, WatchLogging.NORMAL, buildOperationRunner)
            then:
            1 * watcherRegistry.updateVfsOnBuildStarted(_ as SnapshotHierarchy, WatchMode.ENABLED, []) >> { SnapshotHierarchy root, watchMode, unsupportedFileSystems -> root }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 22:18:26 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/test/groovy/org/gradle/tooling/internal/provider/FileSystemWatchingBuildActionRunnerTest.groovy

            WatchMode.DEFAULT  | VfsLogging.NORMAL  | WatchLogging.DEBUG  | true
            WatchMode.ENABLED  | VfsLogging.VERBOSE | WatchLogging.NORMAL | true
            WatchMode.ENABLED  | VfsLogging.NORMAL  | WatchLogging.NORMAL | true
            WatchMode.ENABLED  | VfsLogging.VERBOSE | WatchLogging.DEBUG  | true
            WatchMode.ENABLED  | VfsLogging.NORMAL  | WatchLogging.DEBUG  | true
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  5. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/EnableFileSystemWatchingIntegrationTest.groovy

                gradle.startParameter.setWatchFileSystemMode(${WatchMode.name}.${watchMode.name()})
            """
    
            when:
            run("assemble", "--info")
            then:
            outputContains(ENABLED_IF_AVAILABLE_MESSAGE)
            outputContains(ACTIVE_MESSAGE)
    
            where:
            watchMode << WatchMode.values()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/vfs/impl/WatchingVirtualFileSystem.java

                ));
            }
        }
    
        @Override
        public boolean afterBuildStarted(
            WatchMode watchMode,
            VfsLogging vfsLogging,
            WatchLogging watchLogging,
            BuildOperationRunner buildOperationRunner
        ) {
            warningLogger = watchMode.loggerForWarnings(LOGGER);
            stateInvalidatedAtStartOfBuild = false;
            reasonForNotWatchingFiles = null;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 16:22:15 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  7. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/vfs/impl/WatchingNotSupportedVirtualFileSystem.java

        }
    
        @Override
        public boolean afterBuildStarted(
            WatchMode watchMode,
            VfsLogging vfsLogging,
            WatchLogging watchLogging,
            BuildOperationRunner buildOperationRunner
        ) {
            if (watchMode == WatchMode.ENABLED) {
                LOGGER.warn("Watching the file system is not supported.");
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 17:41:07 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/api/internal/StartParameterInternal.java

    import org.gradle.internal.buildtree.BuildModelParameters;
    import org.gradle.internal.watch.registry.WatchMode;
    
    import javax.annotation.Nullable;
    import java.io.File;
    import java.time.Duration;
    
    public class StartParameterInternal extends StartParameter {
        private WatchMode watchFileSystemMode = WatchMode.DEFAULT;
        private boolean watchFileSystemDebugLogging;
        private boolean vfsVerboseLogging;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 29 08:08:36 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  9. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/vfs/impl/WatchingNotSupportedVirtualFileSystemTest.groovy

            watchingNotSupportedVfs.beforeBuildFinished(watchMode, VfsLogging.NORMAL, WatchLogging.NORMAL, buildOperationRunner, Integer.MAX_VALUE)
            watchingNotSupportedVfs.afterBuildFinished()
            then:
            watchingNotSupportedVfs.root == emptySnapshotHierarchy
    
            where:
            watchMode << WatchMode.values().toList()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 22:18:26 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/vfs/BuildLifecycleAwareVirtualFileSystem.java

        /**
         * Called when the build is finished.
         *
         * This operation happens in the context of executing the build from the client's perspective.
         */
        void beforeBuildFinished(WatchMode watchMode, VfsLogging vfsLogging, WatchLogging watchLogging, BuildOperationRunner buildOperationRunner, int maximumNumberOfWatchedHierarchies);
    
        /**
         * Called after the build is finished.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 2.6K bytes
    - Viewed (0)
Back to top