This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Gradle.
Summary
Downloads a resource to a file.
- Assembly
- Cake
.Gradle .dll - Namespace
- Cake
.Gradle .Abstractions - Containing Type
- IWebAdapter
Syntax
Task DownloadFile(Uri uri, FilePath filePath, Action<int> percentCompleteHandler)
Parameters
| Name | Type | Description |
|---|---|---|
| uri | Uri | The resource to download. |
| filePath | FilePath | Path to store the file. |
| percentCompleteHandler | Action |
Handler to be called when download progress changed. |
Return Value
| Type | Description |
|---|---|
| Task | Nothing. |
