Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for watchable (0.28 sec)

  1. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/registry/impl/HierarchicalFileWatcherUpdater.java

    import java.io.File;
    import java.util.Collection;
    import java.util.List;
    
    /**
     * Updater for hierarchical file watchers.
     *
     * For hierarchical watchers, we can use the registered watchable hierarchies as watched directories.
     * Build root directories are always watchable hierarchies.
     * Watching the build root directories is better since they are less likely to be deleted and
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 15:08:33 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/registry/FileWatcherRegistry.java

        }
    
        enum Type {
            CREATED,
            MODIFIED,
            REMOVED,
            INVALIDATED,
            OVERFLOW
        }
    
        /**
         * Registers a watchable hierarchy.
         *
         * The watcher registry will only watch for changes in watchable hierarchies.
         *
         * @throws WatchingNotSupportedException when the native watchers can't be updated.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 15:08:33 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/AbstractFileWatcherUpdaterTest.groovy

            then:
            0 * _
            !vfsHasSnapshotsAt(fileOutsideOfWatchableHierarchies)
        }
    
        def "retains files in hierarchies ignored for watching"() {
            def watchableHierarchy = file("watchable").createDir()
            def fileOutsideOfWatchableHierarchy = file("outside").file("someFile.txt").createFile()
            def fileInDirectoryIgnoredForWatching = file("cache/some-cache/someFile.txt").createFile()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 15:08:33 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  4. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/registry/FileWatcherUpdater.java

     * <p>
     * The following terms are worth distinguishing between:
     * </p>
     *
     * <dl>
     *     <dt>file system hierarchy</dt>
     *     <dd>A directory on the file system with all its descendants.</dd>
     *
     *     <dt>watchable hierarchies</dt>
     *     <dd>The list of file system hierarchies Gradle might want to watch if interesting content appears in the VFS for them.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 15:08:33 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/registry/impl/WatchableHierarchies.java

                // Remove previously unwatchable files, since they may become watchable.
                // If we register a watchable hierarchy, then there mustn't be anything in the VFS at that location.
                newRoot = invalidateUnwatchableHierarchies(newRoot, invalidator, oldUnwatchableFiles);
                // Remove current unwatchable files, since they still may be watched.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 17:02:39 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  6. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/vfs/BuildLifecycleAwareVirtualFileSystem.java

         */
        boolean afterBuildStarted(WatchMode watchingEnabled, VfsLogging vfsLogging, WatchLogging watchLogging, BuildOperationRunner buildOperationRunner);
    
        /**
         * Register a watchable hierarchy.
         *
         * Only locations within watchable hierarchies will be watched for changes.
         * This method is first called for the root directory of the root project.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/HierarchicalFileWatcherUpdaterTest.groovy

        }
    
        @Override
        int getIfNonHierarchical() { 0 }
    
        def "does not watch hierarchy to watch if no snapshot is inside"() {
            def watchableHierarchy = file("watchable").createDir()
            def secondWatchableHierarchy = file("watchable2").createDir()
            def fileInWatchableHierarchy = watchableHierarchy.file("some/path/file.txt").createFile()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 23 13:24:54 UTC 2024
    - 12K bytes
    - Viewed (0)
  8. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/NonHierarchicalFileWatcherUpdaterTest.groovy

            0 * _
        }
    
        def "removes content on unsupported file systems at the end of the build"() {
            def watchableHierarchy = file("watchable").createDir()
            def watchableContent = watchableHierarchy.file("some/dir/file.txt").createFile()
            def unsupportedFileSystemMountPoint = watchableHierarchy.file("unsupported")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 23 13:24:54 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/vfs/impl/WatchingVirtualFileSystemTest.groovy

            0 * _
    
            watchingVirtualFileSystem.root == nonEmptySnapshotHierarchy
        }
    
        def "collects hierarchies to watch and notifies the vfs"() {
            def watchableHierarchy = new File("watchable")
            def watcherProbe = new File(watchableHierarchy, ".gradle/watch-probe")
            def anotherWatchableHierarchy = new File("anotherWatchable")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 22:18:26 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  10. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/vfs/impl/WatchingVirtualFileSystem.java

        private final FileChangeListeners fileChangeListeners;
        private final List<File> unsupportedFileSystems = new ArrayList<>();
        private Logger warningLogger = LOGGER;
    
        /**
         * Watchable hierarchies registered before the {@link FileWatcherRegistry} has been started.
         */
        private final Set<File> watchableHierarchiesRegisteredEarly = new LinkedHashSet<>();
    
        private FileWatcherRegistry watchRegistry;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 16:22:15 UTC 2024
    - 25.2K bytes
    - Viewed (0)
Back to top