org.apache.ivy.core.report
public class ArtifactDownloadReport extends Object
Note that depending on cache implementation, the artifact may not be actually downloaded, but used directly from its original location.
Field Summary | |
---|---|
static String | MISSING_ARTIFACT
download details used when the download "fails" when the artifact is simply missing on the
remote repository.
|
Constructor Summary | |
---|---|
ArtifactDownloadReport(Artifact artifact) |
Method Summary | |
---|---|
boolean | equals(Object obj) |
Artifact | getArtifact() |
ArtifactOrigin | getArtifactOrigin() |
String | getDownloadDetails() |
DownloadStatus | getDownloadStatus() |
long | getDownloadTimeMillis() |
String | getExt() |
File | getLocalFile()
Returns the File where the artifact is available on the local filesystem,
or null if and only if the artifact caching failed.
|
String | getName() |
long | getSize() |
String | getType() |
int | hashCode() |
boolean | isDownloaded() |
void | setArtifactOrigin(ArtifactOrigin origin) |
void | setDownloadDetails(String message) |
void | setDownloadStatus(DownloadStatus downloadStatus) |
void | setDownloadTimeMillis(long l) |
void | setLocalFile(File localFile) |
void | setSize(long size) |
String | toString() |
For historical reason the status can't be used to distinguish a real failure from a missing artifact by using the status, in both cases it's DownloadStatus.FAILED. The details message can be used for this purpose though.
null
if and only if the artifact caching failed.
Returns: the file where the artifact is now available on the local filesystem.
Returns: the type of the downloaded artifact