- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,068 for treeOf (0.36 sec)
-
platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/FileTreeCodec.kt
is GeneratedSingletonFileTree -> GeneratedTreeSpec(tree.toSpec()) is DirectoryFileTree -> DirectoryTreeSpec(tree.dir, tree.patternSet) else -> null } private fun cannotCreateSpecFor(tree: MinimalFileTree): Nothing = throw UnsupportedOperationException("Cannot create spec for file tree '$tree' of type '${tree.javaClass}'.")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 7.3K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/FileCollectionFactory.java
FileTreeInternal treeOf(List<? extends FileTreeInternal> fileTrees); FileTreeInternal treeOf(MinimalFileTree tree); static FileTreeInternal emptyTree() { return EmptyFileTree.INSTANCE; } static FileTreeInternal emptyTree(String displayName) { if (FileTreeInternal.DEFAULT_TREE_DISPLAY_NAME.equals(displayName)) { return emptyTree(); } else {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 12 02:21:10 UTC 2024 - 7.6K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/DefaultFileCollectionFactory.java
return new DefaultCompositeFileTree(taskDependencyFactory, patternSetFactory, ImmutableList.copyOf(fileTrees)); } } @Override public FileTreeInternal treeOf(MinimalFileTree tree) { return new FileTreeAdapter(tree, listener, taskDependencyFactory, patternSetFactory); } @Override public FileCollectionInternal create(TaskDependency builtBy, MinimalFileSet contents) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 24 18:57:37 UTC 2024 - 13.8K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/DefaultFileCollectionFactoryTest.groovy
} def 'constructs empty tree when composite tree created with empty list'() { def tree = factory.treeOf([]) expect: emptyTree(tree) } def 'returns source file tree when composite tree created with single entry'() { def source = Stub(FileTreeInternal) def tree = factory.treeOf([source]) expect: tree.is source }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 13.9K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/file/DefaultSourceDirectorySet.java
Map<File, DirectoryTree> trees = new LinkedHashMap<>(); for (DirectoryTree tree : getSourceTrees()) { if (!trees.containsKey(tree.getDir())) { trees.put(tree.getDir(), tree); } } return new LinkedHashSet<>(trees.values()); } protected Set<DirectoryFileTree> getSourceTrees() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sun Oct 29 02:23:21 UTC 2023 - 11.5K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/file/copy/DefaultCopySpec.java
walk(copySpecResolver -> builder.add(Cast.<FileTreeInternal>uncheckedCast(copySpecResolver.getSource()))); return fileCollectionFactory.treeOf(builder.build()); } @Override public Collection<? extends Action<? super FileCopyDetails>> getAllCopyActions() { if (parentResolver == null) { return copyActions;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 08 15:25:10 UTC 2024 - 33.6K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/AbstractFileTreeTest.groovy
def "can add file trees together"() { File file1 = new File("f1") File file2 = new File("f2") FileVisitDetails fileVisitDetails1 = fileVisitDetails(file1) FileVisitDetails fileVisitDetails2 = fileVisitDetails(file2) def tree1 = new TestFileTree([fileVisitDetails1]) def tree2 = new TestFileTree([fileVisitDetails2]) when: FileTree sum = tree1.plus(tree2) then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 05 19:36:14 UTC 2023 - 4.5K bytes - Viewed (0) -
operator/pkg/tpath/tree.go
// limitations under the License. /* tree.go contains functions for traversing and updating a tree constructed from yaml or json.Unmarshal. Nodes in such trees have the form map[interface{}]interface{} or map[interface{}][]interface{}. For some tree updates, like delete or append, it's necessary to have access to the parent node. PathContext is a
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 17.5K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/DefaultCompositeFileTreeTest.groovy
visited.toSet() == [a1, b1].toSet() } def "dependencies are union of dependencies of source trees"() { def task1 = Stub(Task) def task2 = Stub(Task) def task3 = Stub(Task) def tree1 = Stub(FileTreeInternal) def tree2 = Stub(FileTreeInternal) given: tree1.visitDependencies(_) >> { TaskDependencyResolveContext context -> context.add(task1)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2.9K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/DirectoryPropertyTest.groovy
} def "can view directory as a file tree"() { given: def dir1 = baseDir.createDir("dir1") def file1 = dir1.createFile("sub-dir/file1") def file2 = dir1.createFile("file2") def dir2 = baseDir.createDir("dir2") def file3 = dir2.createFile("other/file3") expect: def tree1 = baseDirectory.asFileTree tree1.files == [file1, file2, file3] as Set and:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 3K bytes - Viewed (0)