Class DownloadStep

  • All Implemented Interfaces:
    Step

    public class DownloadStep
    extends Object
    implements Step
    Download a file from a known location.
    • Constructor Detail

      • DownloadStep

        public DownloadStep​(ProjectFilesystem filesystem,
                            Downloader downloader,
                            URI canonicalUri,
                            com.google.common.collect.ImmutableList<URI> additionalUris,
                            FileHash expectedHash,
                            Path output)
        Creates an instance of DownloadStep
        Parameters:
        filesystem - The filesystem to use for download files
        downloader - The downloader to use to fetch files
        canonicalUri - The primary uri to try, and the one used in display text
        additionalUris - If the original download fails, try to download from these mirrors
        expectedHash - The expected expectedHash of the file
        output - Where to output the file inside of the filesystem