Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for getFileResolver (0.2 sec)

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

        /**
         * Returns a file resolver with no base directory.
         */
        FileResolver getFileResolver();
    
        /**
         * Returns a file resolver with no base directory.
         */
        PathToFileResolver getPathToFileResolver();
    
        /**
         * Returns a file resolver with the given base directory.
         */
        FileResolver getFileResolver(File baseDirectory);
    
        /**
         * Returns a file resolver with the given base directory.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/groovy/scripts/DefaultScript.java

                    processOperations = services.get(ExecFactory.class);
                }
            }
    
            providerFactory = services.get(ProviderFactory.class);
        }
    
        public FileResolver getFileResolver() {
            return fileOperations.getFileResolver();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. platforms/software/maven/src/main/java/org/gradle/api/publish/maven/tasks/GenerateMavenPom.java

        private final Cached<MavenPomFileGenerator.MavenPomSpec> mavenPomSpec = Cached.of(() ->
            MavenPomFileGenerator.generateSpec((MavenPomInternal) getPom())
        );
    
        @Inject
        protected FileResolver getFileResolver() {
            throw new UnsupportedOperationException();
        }
    
        /**
         * Get the version range mapper.
         *
         * @deprecated This method will be removed in Gradle 9.0
         */
        @Inject
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/api/internal/file/FileOperations.java

    @ServiceScope(Scope.Build.class)
    public interface FileOperations {
        File file(Object path);
    
        File file(Object path, PathValidation validation);
    
        URI uri(Object path);
    
        FileResolver getFileResolver();
    
        String relativePath(Object path);
    
        /**
         * Creates a mutable file collection and initializes it with the given paths.
         */
        ConfigurableFileCollection configurableFiles(Object... paths);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. platforms/software/ivy/src/main/java/org/gradle/api/publish/ivy/tasks/GenerateIvyDescriptor.java

        private final Cached<IvyDescriptorFileGenerator.DescriptorFileSpec> ivyDescriptorSpec = Cached.of(this::computeIvyDescriptorFileSpec);
    
        private Object destination;
    
        @Inject
        protected PathToFileResolver getFileResolver() {
            throw new UnsupportedOperationException();
        }
    
        /**
         * The module descriptor metadata.
         *
         * @return The module descriptor.
         */
        @Internal
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  6. platforms/jvm/platform-jvm/src/main/java/org/gradle/jvm/tasks/Jar.java

        private final CopySpecInternal metaInf;
    
        public Jar() {
            getArchiveExtension().set(DEFAULT_EXTENSION);
            setMetadataCharset("UTF-8");
    
            manifest = new DefaultManifest(getFileResolver());
            // Add these as separate specs, so they are not affected by the changes to the main spec
            metaInf = (CopySpecInternal) getRootSpec().addFirst().into("META-INF");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  7. platforms/software/reporting/src/main/java/org/gradle/api/reporting/ReportingExtension.java

         * @return a file object at the given path relative to {@link #getBaseDir()}
         */
        public File file(String path) {  // TODO should this take Object?
            return this.project.getServices().get(FileLookup.class).getFileResolver(getBaseDir()).resolve(path);
        }
    
        // TODO this doesn't belong here, that java plugin should add an extension to this guy with this
        public String getApiDocTitle() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  8. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/KotlinScriptHost.kt

    
    internal
    fun fileOperationsFor(services: ServiceRegistry, baseDir: File?): FileOperations {
        val fileLookup = services.get<FileLookup>()
        val fileResolver = baseDir?.let { fileLookup.getFileResolver(it) } ?: fileLookup.fileResolver
        val fileCollectionFactory = services.get<FileCollectionFactory>().withResolver(fileResolver)
        return DefaultFileOperations.createSimple(
            fileResolver,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 13:09:45 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/internal/service/scopes/SettingsScopeServices.java

            return new DefaultBuildLayout(settings, fileFactory);
        }
    
        @Provides
        protected FileResolver createFileResolver(FileLookup fileLookup) {
            return fileLookup.getFileResolver(settings.getSettingsDir());
        }
    
        @Provides
        protected PluginRegistry createPluginRegistry(PluginRegistry parentRegistry) {
            return parentRegistry.createChild(settings.getClassLoaderScope());
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 09:21:42 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. platforms/software/plugins-distribution/src/main/java/org/gradle/api/distribution/plugins/DistributionPlugin.java

                task.with(childSpec);
            });
    
            PublishArtifact archiveArtifact = new LazyPublishArtifact(archiveTask, ((ProjectInternal) project).getFileResolver(), ((ProjectInternal) project).getTaskDependencyFactory());
            project.getExtensions().getByType(DefaultArtifactPublicationSet.class).addCandidate(archiveArtifact);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 20 20:49:58 UTC 2023
    - 7.8K bytes
    - Viewed (0)
Back to top