Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getResourceFor (0.2 sec)

  1. platforms/jvm/toolchains-jvm/src/test/groovy/org/gradle/jvm/toolchain/install/internal/SecureFileDownloaderTest.groovy

            when:
            URI uri = URI.create("https://foo")
            downloader.download(uri, destinationFile, downloader.getResourceFor(uri, Collections.emptyList()))
    
            then:
            noExceptionThrown()
            destinationFile.exists()
            destinationFile.text == "foo"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jul 28 16:17:59 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  2. platforms/jvm/toolchains-jvm/src/main/java/org/gradle/jvm/toolchain/internal/install/SecureFileDownloader.java

        public SecureFileDownloader(RepositoryTransportFactory repositoryTransportFactory) {
            this.repositoryTransportFactory = repositoryTransportFactory;
        }
    
        public ExternalResource getResourceFor(URI source, Collection<Authentication> authentications) {
            return createExternalResource(source, authentications);
        }
    
        public void download(URI source, File destination, ExternalResource resource) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jul 28 16:17:59 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  3. platforms/jvm/toolchains-jvm/src/test/groovy/org/gradle/jvm/toolchain/install/internal/DefaultJavaToolchainProvisioningServiceTest.groovy

            downloadResourceMetadata.getFilename() >> ARCHIVE_NAME
    
            ExternalResource downloadResource = Mock(ExternalResource)
            downloadResource.getMetaData() >> downloadResourceMetadata
    
            downloader.getResourceFor(_ as URI, _ as Collection<Authentication>) >> downloadResource
    
            cache.acquireWriteLock(_ as File, _ as String) >> archiveFileLock
            cache.getDownloadLocation() >> temporaryFolder
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 23:01:05 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. platforms/jvm/toolchains-jvm/src/main/java/org/gradle/jvm/toolchain/internal/install/DefaultJavaToolchainProvisioningService.java

                try {
                    File downloadFolder = cacheDirProvider.getDownloadLocation();
                    ExternalResource resource = wrapInOperation("Examining toolchain URI " + uri, () -> downloader.getResourceFor(uri, authentications));
                    File archiveFile = new File(downloadFolder, getFileName(uri, resource));
                    final FileLock fileLock = cacheDirProvider.acquireWriteLock(archiveFile, "Downloading toolchain");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 23:01:05 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top