@CacheableTask
public class DownloadTask
extends org.gradle.api.DefaultTask
| Modifier and Type | Field and Description |
|---|---|
protected org.gradle.api.provider.Property<java.lang.Boolean> |
forceDownload |
protected org.gradle.api.provider.Property<java.lang.String> |
toolVersion |
| Constructor and Description |
|---|
DownloadTask() |
| Modifier and Type | Method and Description |
|---|---|
protected java.io.File |
download() |
protected void |
explodeZip(java.io.File archive,
java.io.File outputDir) |
protected void |
explodeZipEntry(java.io.File outputDir,
java.util.jar.JarFile jarFile,
java.util.zip.ZipEntry entry) |
protected java.lang.String |
getArchitecture() |
org.gradle.api.provider.Property<java.lang.Boolean> |
getForceDownload() |
java.io.File |
getOutputDirectory() |
protected java.lang.String |
getPlatform() |
org.gradle.api.provider.Property<java.lang.String> |
getToolVersion() |
void |
run() |
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceappendParallelSafeAction, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, prependParallelSafeAction, replaceLogger, setImpliesSubProjectsprotected final org.gradle.api.provider.Property<java.lang.String> toolVersion
protected final org.gradle.api.provider.Property<java.lang.Boolean> forceDownload
@Nonnull @Input public org.gradle.api.provider.Property<java.lang.String> getToolVersion()
@Nonnull @Optional @Input public org.gradle.api.provider.Property<java.lang.Boolean> getForceDownload()
@Nonnull @OutputDirectory public java.io.File getOutputDirectory()
@Nonnull @Internal protected java.lang.String getPlatform()
@Nonnull @Internal protected java.lang.String getArchitecture()
public void run()
@Nullable protected java.io.File download()
protected void explodeZip(@Nonnull
java.io.File archive,
@Nonnull
java.io.File outputDir)
throws java.io.IOException
java.io.IOExceptionprotected void explodeZipEntry(@Nonnull
java.io.File outputDir,
@Nonnull
java.util.jar.JarFile jarFile,
@Nonnull
java.util.zip.ZipEntry entry)
throws java.io.IOException
java.io.IOException