Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for createDelegate (0.65 sec)

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

        protected void visitChildren(Consumer<FileCollectionInternal> visitor) {
            if (delegate == null) {
                delegate = (FileCollectionInternal) createDelegate();
            }
            visitor.accept(delegate);
        }
    
        public abstract FileCollection createDelegate();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 07:32:51 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/caching/internal/controller/impl/LifecycleAwareBuildCacheControllerFactory.java

                getDelegate().store(cacheKey, entity, snapshots, executionTime);
            }
    
            @Override
            public void close() {
                resetState();
            }
    
            protected static void createDelegate(BuildCacheConfigurationInternal configuration, AtomicReference<BuildCacheController> delegate, BuildCacheControllerFactory buildCacheControllerFactory, Path identityPath, InstanceGenerator instanceGenerator) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 23:28:13 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/FailingFileCollection.java

            this.failure = failure;
        }
    
        @Override
        public String getDisplayName() {
            return displayName;
        }
    
        @Override
        public FileCollection createDelegate() {
            throw failure;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/api/internal/resources/FileCollectionBackedArchiveTextResource.java

                public String getDisplayName() {
                    return String.format("entry '%s' in archive %s", path, fileCollection);
                }
    
                @Override
                public FileCollection createDelegate() {
                    File archiveFile = fileCollection.getSingleFile();
                    String fileExtension = Files.getFileExtension(archiveFile.getName());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 28 15:32:09 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  5. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/LazilyInitializedFileCollectionTest.groovy

            @Override
            void visitDependencies(TaskDependencyResolveContext context) {
                taskDependenciesCount++
                context.add(task)
            }
    
            @Override
            FileCollectionInternal createDelegate() {
                createCount++
                TestFiles.fixed(new File("foo"))
            }
        }
    
        def "creates delegate on first access"() {
            expect:
            createCount == 0
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  6. platforms/jvm/plugins-groovy/src/main/java/org/gradle/api/tasks/GroovyRuntime.java

                @Override
                public String getDisplayName() {
                    return "Groovy runtime classpath";
                }
    
                @Override
                public FileCollection createDelegate() {
                    try {
                        return inferGroovyClasspath();
                    } catch (RuntimeException e) {
                        return new FailingFileCollection(getDisplayName(), e);
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 12 18:44:49 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  7. platforms/jvm/scala/src/main/java/org/gradle/api/tasks/ScalaRuntime.java

                @Override
                public String getDisplayName() {
                    return "Scala runtime classpath";
                }
    
                @Override
                public FileCollection createDelegate() {
                    try {
                        return inferScalaClasspath();
                    } catch (RuntimeException e) {
                        return new FailingFileCollection(getDisplayName(), e);
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/api/internal/tasks/execution/TaskExecution.java

                this.task = task;
                this.fileCollectionFactory = fileCollectionFactory;
                this.previousOutputs = previousOutputs;
            }
    
            @Override
            public FileCollectionInternal createDelegate() {
                List<File> outputs = previousOutputs.values().stream()
                    .map(SnapshotUtil::indexByAbsolutePath)
                    .map(Map::keySet)
                    .flatMap(Collection::stream)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 23.4K bytes
    - Viewed (0)
Back to top