Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for EmptyFileCollection (0.53 sec)

  1. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/EmptyFileCollection.java

    import java.io.File;
    import java.util.Optional;
    import java.util.Set;
    
    final class EmptyFileCollection extends AbstractFileCollection {
        public static final FileCollectionInternal INSTANCE = new EmptyFileCollection(DEFAULT_COLLECTION_DISPLAY_NAME);
    
        private final String displayName;
    
        public EmptyFileCollection(String displayName) {
            this.displayName = displayName;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 14:55:28 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/EmptyFileCollectionExecutionTimeValueTest.groovy

    import static org.gradle.api.internal.file.TestFiles.fileCollectionFactory
    
    class EmptyFileCollectionExecutionTimeValueTest extends Specification {
    
        def "EmptyFileCollection supports execution time value"() {
            given:
            def collection = new EmptyFileCollection("foo")
    
            when:
            def executionTimeValue = collection.calculateExecutionTimeValue()
    
            then:
            executionTimeValue.present
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 14:55:28 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/FileCollectionFactory.java

                return empty();
            } else {
                return new EmptyFileCollection(displayName);
            }
        }
    
        /**
         * Creates an empty {@link FileCollection}
         */
        static FileCollectionInternal empty() {
            return EmptyFileCollection.INSTANCE;
        }
    
        /**
         * Creates a {@link FileCollection} with the given files as content.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  4. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/DefaultFileCollectionFactory.java

        }
    
        @Override
        public FileCollectionInternal fixed(String displayName, File... files) {
            if (files.length == 0) {
                return new EmptyFileCollection(displayName);
            }
            return new FixedFileCollection(displayName, taskDependencyFactory, patternSetFactory, ImmutableSet.copyOf(files));
        }
    
        @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)
Back to top