Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 805 for watched (0.21 sec)

  1. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/WatchedHierarchiesTest.groovy

        def "does not watch when there's nothing to watch"() {
            def watchable = Mock(WatchableHierarchies)
            when:
            def watched = resolveWatchedFiles(watchable, buildHierarchy([]))
            then:
            rootsOf(watched) == []
            1 * watchable.stream() >> Stream.of()
        }
    
        def "watches empty directory"() {
            def watchable = Mock(WatchableHierarchies)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:38:01 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/registry/impl/HierarchicalFileWatcherUpdater.java

     *   each call augmenting the collection. The watchers will be updated accordingly.
     * - When updating the watches, we watch watchable hierarchies registered for this build or old watched directories from previous builds instead of
     *   directories inside them.
     * - At the end of the build
     *   - stop watching the watchable directories with nothing to watch inside
     *   - remember the currently watched directories as old watched directories for the next build
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 15:08:33 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/registry/FileWatcherUpdater.java

     *     operating system to watch.
     *     See {@link org.gradle.internal.watch.registry.impl.HierarchicalFileWatcherUpdater}.</dd>
     *
     *     <dt>watched directories</dt>
     *     <dd>On OSs with non-hierarchical file system events (currently Linux only) we don't watch whole
     *     hierarchies, but need to individually watch each directory and its immediate children.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 15:08:33 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/WatchedDirectoriesFileSystemWatchingIntegrationTest.groovy

                return
            }
            def watchedHierarchies = output.readLines()
                .find { it.contains("Watched directory hierarchies: [") }
                .with { line ->
                    def matcher = line =~ /Watched directory hierarchies: \[(.*)]/
                    String directories = matcher[0][1]
                    return (directories.empty
                        ? []
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  5. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/vfs/impl/FileWatchingFilter.java

     *
     * - Locations known to be modified during a build might receive late file events that would invalidate VFS state we just
     *   captured after the changes; to avoid this, after a known modification we assume no further modifications will
     *   happen to the same location, and all file events belong the know modifications instead.
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:33 UTC 2023
    - 3K bytes
    - Viewed (0)
  6. pkg/util/filesystem/watcher.go

    	}
    
    	// Initialize watcher, fall back to no-op
    	var (
    		eventsCh chan fsnotify.Event
    		errorCh  chan error
    		watcher  watchAddRemover
    	)
    	if w, err := fsnotify.NewWatcher(); err != nil {
    		errorHandler(fmt.Errorf("error creating file watcher, falling back to poll at interval %s: %w", pollInterval, err))
    		watcher = noopWatcher{}
    	} else {
    		watcher = w
    		eventsCh = w.Events
    		errorCh = w.Errors
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 14 23:09:15 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/registry/impl/DarwinFileWatcherRegistryFactory.java

            OsxFileWatcher watcher,
            FileWatcherProbeRegistry probeRegistry,
            WatchableHierarchies watchableHierarchies
        ) {
            return new HierarchicalFileWatcherUpdater(watcher, DarwinFileWatcherRegistryFactory::validateLocationToWatch, probeRegistry, watchableHierarchies, root -> Collections.emptyList());
        }
    
        /**
         * The macOS native watcher reports the canonical path for watched paths.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:33 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/registry/impl/AbstractFileWatcherUpdater.java

             *
             * On Windows when watched directories are moved, the OS does not send a notification,
             * even though the VFS should be updated.
             *
             * On Linux, when you move the parent directory of a watched directory, then there isn't a notification.
             *
             * Our best bet here is to cull any moved watched directories from the VFS at the start of every build.
             */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 17:02:39 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  9. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/AbstractFileWatcherUpdaterTest.groovy

        def setup() {
            updater = createUpdater(watcher, watchableHierarchies)
        }
    
        /**
         * Returns 1 for non-hierarchical watchers, and 0 for hierarchical watchers.
         *
         * For use in interaction tests, when an interaction only happens for non-hierarchical watchers.
         * E.g.:
         * ifNonHierarchical * watcher.startWatching(_)
         */
        abstract int getIfNonHierarchical()
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 15:08:33 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  10. pkg/kube/watcher/configmapwatcher/configmapwatcher_test.go

    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    
    	"istio.io/istio/pkg/kube"
    )
    
    const (
    	configMapNamespace string = "istio-system"
    	configMapName      string = "watched"
    )
    
    func makeConfigMap(name, resourceVersion string) *v1.ConfigMap {
    	return &v1.ConfigMap{
    		ObjectMeta: metav1.ObjectMeta{
    			Namespace:       configMapNamespace,
    			Name:            name,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 3.1K bytes
    - Viewed (0)
Back to top