public interface Downloader
Interface for downloading a package or distribution and logging progress using internal Gradle mechanisms.
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
download(URI address, File destination) Downloads a package / distribution / file |
|
public DownloadedLocalFile |
downloadLocation(URI address, File downloadRoot, String relativeBasePath) Returns information on where files are downloaded to. |
|
public DownloadedLocalFile |
downloadLocation(URI address, File downloadRoot, String relativeBasePath, String checksum) Returns information on where files are downloaded to. |
|
public void |
logProgress(String msg) Logs a progress message. |
Downloads a package / distribution / file By default file and http(s) schemes are supported. If Gradle adds additional schemes they are automatically supported.
address
- URI to download package from.destination
- Destination to download file to.Returns information on where files are downloaded to.
address
- URI to download package from.downloadRoot
- THe root directory where download are sent to.relativeBasePath
- A relative path to the download root where to place files and temporary artifacts.Returns information on where files are downloaded to.
address
- URI to download package from.downloadRoot
- THe root directory where download are sent to.relativeBasePath
- A relative path to the download root where to place files and temporary artifacts.checksum
- Add checksum verification.Logs a progress message.
msg
- Message.