Constructor and Description |
---|
DownloadStep(ProjectFilesystem filesystem,
Downloader downloader,
URI canonicalUri,
com.google.common.collect.ImmutableList<URI> additionalUris,
FileHash expectedHash,
Path output)
Creates an instance of
DownloadStep |
Modifier and Type | Method and Description |
---|---|
StepExecutionResult |
execute(ExecutionContext context) |
String |
getDescription(ExecutionContext context) |
String |
getShortName() |
public DownloadStep(ProjectFilesystem filesystem, Downloader downloader, URI canonicalUri, com.google.common.collect.ImmutableList<URI> additionalUris, FileHash expectedHash, Path output)
DownloadStep
filesystem
- The filesystem to use for download filesdownloader
- The downloader to use to fetch filescanonicalUri
- The primary uri to try, and the one used in display textadditionalUris
- If the original download fails, try to download from these mirrorsexpectedHash
- The expected expectedHash of the fileoutput
- Where to output the file inside of the filesystempublic StepExecutionResult execute(ExecutionContext context) throws IOException
execute
in interface Step
IOException
public String getShortName()
getShortName
in interface Step
public String getDescription(ExecutionContext context)
getDescription
in interface Step