public class DownloadExtension
extends java.lang.Object
DownloadAction| Constructor and Description |
|---|
DownloadExtension(org.gradle.api.Project project)
Creates a new extension
|
| Modifier and Type | Method and Description |
|---|---|
void |
run(org.gradle.api.Action<DownloadSpec> action)
Download a file now
|
java.util.concurrent.CompletableFuture<java.lang.Void> |
runAsync(org.gradle.api.Action<DownloadSpec> action)
Download a file asynchronously
|
public DownloadExtension(org.gradle.api.Project project)
project - the project to be builtpublic void run(org.gradle.api.Action<DownloadSpec> action)
action - action that configures a given DownloadSpecpublic java.util.concurrent.CompletableFuture<java.lang.Void> runAsync(org.gradle.api.Action<DownloadSpec> action)
action - action that configures a given DownloadSpecCompletableFuture that completes successfully when
the download has finished successfully or that completes exceptionally
if the download has failed.