Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for watchable2 (0.31 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)
            def dir = new File("empty").absoluteFile
    
    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. pkg/filewatcher/filewatcher_test.go

    	err := os.WriteFile(watchFile1, []byte("foo: bar\n"), 0o640)
    	g.Expect(err).NotTo(HaveOccurred())
    
    	watchFile2 := path.Join(watchDir, "test2.conf")
    	err = os.WriteFile(watchFile2, []byte("foo: baz\n"), 0o640)
    	g.Expect(err).NotTo(HaveOccurred())
    
    	return watchFile1, watchFile2
    }
    
    // newSymlinkedWatchFile simulates the behavior of k8s configmap/secret.
    // Path structure looks like:
    //
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  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. staging/src/k8s.io/apimachinery/pkg/watch/doc.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    // Package watch contains a generic watchable interface, and a fake for
    // testing code that uses the watch interface.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 11 14:09:48 UTC 2017
    - 746 bytes
    - Viewed (0)
  8. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/registry/impl/DefaultFileWatcherProbeRegistry.java

                LOGGER.debug("Did not find watchable hierarchy to arm probe for: {}", watchableHierarchy);
            }
        }
    
        @Override
        public void disarmWatchProbe(File watchableHierarchy) {
            WatchProbe probe = watchProbesByHierarchy.get(watchableHierarchy);
            if (probe != null) {
                probe.disarm();
            } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:38:01 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  9. cluster/addons/calico-policy-controller/calico-clusterrole.yaml

          - list
          - create
          - update
          - delete
      - apiGroups: ["crd.projectcalico.org"]
        resources:
          - ipamconfigs
        verbs:
          - get
      # Block affinities must also be watchable by confd for route aggregation.
      - apiGroups: ["crd.projectcalico.org"]
        resources:
          - blockaffinities
        verbs:
          - watch
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 26 02:52:06 UTC 2020
    - 3.3K bytes
    - Viewed (0)
  10. 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)
Back to top