Class DownloadStep

  • All Implemented Interfaces:

    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,
                  <URI> additionalUris,
                            FileHash expectedHash,
                            Path output)
        Creates an instance of DownloadStep
        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