Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 222 for fileTrees (0.19 sec)

  1. platforms/documentation/docs/src/snippets/files/fileTrees/tests/fileTrees.sample.conf

    Laura Kassovic <******@****.***> 1701107622 -0800
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 31 bytes
    - Viewed (0)
  2. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/AntFileCollectionMatchingTaskBuilder.java

    import java.util.Collections;
    
    public class AntFileCollectionMatchingTaskBuilder implements AntBuilderAware {
    
        private final Iterable<DirectoryTree> fileTrees;
    
        public AntFileCollectionMatchingTaskBuilder(Iterable<DirectoryTree> fileTrees) {
            this.fileTrees = fileTrees;
        }
    
        @Override
        public Object addToAntBuilder(final Object node, final String childNodeName) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/DefaultCompositeFileTree.java

        private final Collection<? extends FileTreeInternal> fileTrees;
    
        public DefaultCompositeFileTree(TaskDependencyFactory taskDependencyFactory, Factory<PatternSet> patternSetFactory, List<? extends FileTreeInternal> fileTrees) {
            super(taskDependencyFactory, patternSetFactory);
            this.fileTrees = fileTrees;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  4. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/AbstractFileCollection.java

                    // TODO - add some convenient way to visit the files of the tree without collecting them into a set
                    files.addAll(fileTree.getFiles());
                }
    
                @Override
                public void visitFileTree(File root, PatternSet patterns, FileTreeInternal fileTree) {
                    addTreeContents(fileTree);
                }
    
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 07:32:50 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheFileTreeIntegrationTest.groovy

            and:
            configurationCache.assertStateLoaded()
    
            where:
            [pattern, fileTree] << [fileTreeOperators(), fileTrees()].combinations()
            isZip = fileTree.toString().startsWith('zip')
        }
    
        private List<String> fileTrees() {
            [
                "fileTree(dir: 'src', include: '**/*.*')",
                "zipTree('src.zip')",
            ]
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/DefaultCompositeFileTreeTest.groovy

    class DefaultCompositeFileTreeTest extends WorkspaceTest {
    
        private DefaultCompositeFileTree newCompositeFileTree(List<? extends FileTreeInternal> fileTrees) {
            new DefaultCompositeFileTree(TestFiles.taskDependencyFactory(), TestFiles.patternSetFactory, fileTrees)
        }
    
        def "can be empty"() {
            when:
            def ft = newCompositeFileTree([])
    
            then:
            ft.files.isEmpty()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  7. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/DefaultFileCollectionFactory.java

                return fileTrees.get(0);
            } else {
                return new DefaultCompositeFileTree(taskDependencyFactory, patternSetFactory, ImmutableList.copyOf(fileTrees));
            }
        }
    
        @Override
        public FileTreeInternal treeOf(MinimalFileTree tree) {
            return new FileTreeAdapter(tree, listener, taskDependencyFactory, patternSetFactory);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 18:57:37 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  8. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/FileTreeCodec.kt

        override suspend fun ReadContext.decode(): FileTreeInternal? =
            decodePreservingIdentity { id ->
                val specs = readNonNull<List<FileTreeSpec>>()
                val fileTrees = specs.map(::fromSpec)
                val tree = fileCollectionFactory.treeOf(fileTrees)
                isolate.identities.putInstance(id, tree)
                tree
            }
    
        private
        fun rootSpecOf(value: FileTreeInternal): List<FileTreeSpec> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  9. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/FileCollectionFactory.java

         *
         * <p>The tree is not live. The provided list is queried on construction and discarded.
         */
        FileTreeInternal treeOf(List<? extends FileTreeInternal> fileTrees);
    
        FileTreeInternal treeOf(MinimalFileTree tree);
    
        static FileTreeInternal emptyTree() {
            return EmptyFileTree.INSTANCE;
        }
    
        static FileTreeInternal emptyTree(String displayName) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/authoring-builds/gradle-properties/working_with_files.adoc

    * iterate over them (depth first)
    * filter them (using link:{javadocPath}/org/gradle/api/file/FileTree.html#matching-org.gradle.api.Action-[FileTree.matching(org.gradle.api.Action)] and Ant-style patterns)
    * merge them
    
    You can also traverse file trees using the link:{javadocPath}/org/gradle/api/file/FileTree.html#visit-org.gradle.api.Action-[FileTree.visit(org.gradle.api.Action)] method.
    All of these techniques are demonstrated in the following example:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 04:19:09 UTC 2024
    - 70.5K bytes
    - Viewed (0)
Back to top