Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for fileCollections (0.19 sec)

  1. platforms/documentation/docs/src/docs/userguide/authoring-builds/gradle-properties/working_with_files.adoc

    ====
    include::sample[dir="snippets/files/fileCollections/kotlin",files="build.gradle.kts[tags=closure]"]
    include::sample[dir="snippets/files/fileCollections/groovy",files="build.gradle[tags=closure]"]
    ====
    
    ----
    $ gradle -q list
    include::{snippetsPath}/files/fileCollections/tests/fileCollectionsWithClosure.out[]
    ----
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 04:19:09 UTC 2024
    - 70.5K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/configurations/DefaultConfiguration.java

        }
    
        @Override
        @Deprecated
        public FileCollection fileCollection(Closure dependencySpecClosure) {
            return fileCollectionInternal("fileCollection(Closure)", Specs.convertClosureToSpec(dependencySpecClosure));
        }
    
        @Override
        @Deprecated
        public FileCollection fileCollection(Dependency... dependencies) {
            Set<Dependency> deps = WrapUtil.toLinkedSet(dependencies);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 17:36:01 UTC 2024
    - 85.4K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/configurations/DefaultConfigurationSpec.groovy

            def fileSet = [new File("somePath")] as Set
            resolver.resolveGraph(configuration) >> graphResolved(fileSet)
    
            when:
            def fileCollection = configuration.fileCollection(dependency1)
    
            then:
            fileCollection.files == fileSet
            configuration.state == RESOLVED
        }
    
        def fileCollectionWithSpec() {
            def configuration = conf()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 17:30:13 UTC 2024
    - 64.8K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformWithDependenciesIntegrationTest.groovy

                        String getTransformName()
                        void setTransformName(String name)
                    }
    
                    @InputArtifactDependencies
                    abstract FileCollection getInputArtifactDependencies()
    
                    @InputArtifact
                    abstract Provider<FileSystemLocation> getInputArtifact()
    
                    void transform(TransformOutputs outputs) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 54.2K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/AsmBackedClassGeneratorTest.java

            private String prop;
            private FileCollection files;
            private List<Object> things;
    
            public String getProp() {
                return prop;
            }
    
            public void setProp(String prop) {
                this.prop = prop;
            }
    
            public FileCollection getFiles() {
                return files;
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 74.6K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_8.adoc

    Currently, the following methods should only be called with these listed allowed usages:
    
    - `resolve()` - RESOLVABLE configurations only
    - `files(Closure)`, `files(Spec)`, `files(Dependency…)`, `fileCollection(Spec)`, `fileCollection(Closure)`, `fileCollection(Dependency…)` - RESOLVABLE configurations only
    - `getResolvedConfigurations()` - RESOLVABLE configurations only
    - `defaultDependencies(Action)` - DECLARABLE configurations only
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 17:01:07 UTC 2024
    - 90.7K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/docs/userguide/optimizing-performance/incremental_build.adoc

    * Filesystem types
    +
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 24 23:14:04 UTC 2024
    - 63.9K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/docs/userguide/optimizing-performance/configuration_cache.adoc

    | `project.files(paths)`
    | link:{javadocPath}/org/gradle/api/model/ObjectFactory.html#fileCollection--[ObjectFactory.fileCollection()].link:{javadocPath}/org/gradle/api/file/ConfigurableFileCollection.html#from-java.lang.Object...-[from(paths)]
    
    | `project.fileTree(paths)`
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 16:24:12 UTC 2024
    - 71.1K bytes
    - Viewed (0)
  9. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollectionSpec.groovy

            collection.replace { null }
    
            then:
            collection.isEmpty()
        }
    
        def "replace transformation runs eagerly"() {
            given:
            Transformer<FileCollection, FileCollection> transform = Mock()
            collection.from(containing(new File("a.txt")))
    
            when:
            collection.replace(transform)
    
            then:
            1 * transform.transform(_)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 17:09:50 UTC 2024
    - 53K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_4.adoc

    to reset the property back to its default value. Use `DuplicatesStrategy.INHERIT` instead.
     * The `FileCollection.stopExecutionIfEmpty()` method has been removed — use the link:{javadocPath}/org/gradle/api/tasks/SkipWhenEmpty.html[@SkipWhenEmpty] annotation on `FileCollection` task properties instead.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 03:01:48 UTC 2024
    - 60.1K bytes
    - Viewed (0)
Back to top