|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectde.undercouch.gradle.tasks.download.DownloadAction
public class DownloadAction
Downloads a file and displays progress
| Constructor Summary | |
|---|---|
DownloadAction()
|
|
| Method Summary | |
|---|---|
void |
compress(boolean compress)
Specifies if compression should be used during download |
void |
dest(java.lang.Object dest)
Sets the download destination |
void |
execute(org.gradle.api.Project project)
Starts downloading |
java.io.File |
getDest()
|
java.lang.String |
getPassword()
|
java.net.URL |
getSrc()
|
java.lang.String |
getUsername()
|
boolean |
isCompress()
|
boolean |
isOnlyIfNewer()
|
boolean |
isOverwrite()
|
boolean |
isQuiet()
|
void |
onlyIfNewer(boolean onlyIfNewer)
Sets the onlyIfNewer flag |
void |
overwrite(boolean overwrite)
Sets the overwrite flag |
void |
password(java.lang.String password)
Sets the password for Basic authentication |
void |
quiet(boolean quiet)
Sets the quiet flag |
void |
src(java.lang.Object src)
Sets the download source URL |
void |
username(java.lang.String username)
Sets the username for Basic authentication |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DownloadAction()
| Method Detail |
|---|
public void execute(org.gradle.api.Project project)
throws java.io.IOException
project - the project to be built
java.io.IOException - if the file could not downloaded
public void src(java.lang.Object src)
throws java.net.MalformedURLException
DownloadSpec
src in interface DownloadSpecsrc - the URL
java.net.MalformedURLException - if the download source is not a URLpublic void dest(java.lang.Object dest)
DownloadSpec
dest in interface DownloadSpecdest - a file or directory where to store the retrieved filepublic void quiet(boolean quiet)
DownloadSpec
quiet in interface DownloadSpecquiet - true if download progress should not be loggedpublic void overwrite(boolean overwrite)
DownloadSpec
overwrite in interface DownloadSpecoverwrite - true if existing files should be overwritten, false otherwisepublic void onlyIfNewer(boolean onlyIfNewer)
DownloadSpec
onlyIfNewer in interface DownloadSpeconlyIfNewer - true if the file should only be downloaded if it
has been modified on the server since the last downloadpublic void compress(boolean compress)
DownloadSpec
compress in interface DownloadSpeccompress - true if compression should be enabledpublic void username(java.lang.String username)
DownloadSpecBasic authentication
username in interface DownloadSpecusername - the usernamepublic void password(java.lang.String password)
DownloadSpecBasic authentication
password in interface DownloadSpecpassword - the passwordpublic java.net.URL getSrc()
getSrc in interface DownloadSpecpublic java.io.File getDest()
getDest in interface DownloadSpecpublic boolean isQuiet()
isQuiet in interface DownloadSpecpublic boolean isOverwrite()
isOverwrite in interface DownloadSpecpublic boolean isOnlyIfNewer()
isOnlyIfNewer in interface DownloadSpecpublic boolean isCompress()
isCompress in interface DownloadSpecpublic java.lang.String getUsername()
getUsername in interface DownloadSpecBasic authenticationpublic java.lang.String getPassword()
getPassword in interface DownloadSpecBasic authentication
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||