- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for watchable2 (0.14 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/registry/impl/WatchableHierarchies.java
if (!oldUnwatchableFiles.equals(unwatchableFiles)) { // 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);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jan 25 17:02:39 UTC 2024 - 15.8K bytes - Viewed (0) -
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)