de.undercouch.gradle.tasks.download.DownloadDetails Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-download-task Show documentation
Show all versions of gradle-download-task Show documentation
Adds a download task to Gradle that displays progress information
The newest version!
package de.undercouch.gradle.tasks.download;
import org.gradle.api.file.RelativePath;
import java.net.URL;
/**
* Provides details about a download source and its target file
* @author Michel Kraemer
*/
public interface DownloadDetails {
/**
* Set the name of the target file
* @param name the filename
*/
void setName(String name);
/**
* Get the name of the target file
* @return the filename
*/
String getName();
/**
* Get the source URL
* @return the URL
*/
URL getSourceURL();
/**
* Get the path of the target file, relative to download directory
* @return the path of the target file, relative to download directory
*/
RelativePath getRelativePath();
/**
* Set the path of the target file (including the filename)
* @param path the path of the target file (including the filename)
*/
void setRelativePath(RelativePath path);
/**
* Get the path of the target file, relative to download directory
* @return the path of the target file, relative to download directory
*/
String getPath();
/**
* Set the path of the target file (including the filename)
* @param path the path of the target file (including the filename)
*/
void setPath(String path);
}