| |
|
| java.lang.Object org.apache.ivy.core.report.ArtifactDownloadReport
All known Subclasses: org.apache.ivy.core.report.MetadataArtifactDownloadReport,
ArtifactDownloadReport | public class ArtifactDownloadReport (Code) | | Report on the download of an artifact from a repository to a local (cached) file.
Note that depending on cache implementation, the artifact may not be actually downloaded, but
used directly from its original location.
|
Field Summary | |
final public static String | MISSING_ARTIFACT download details used when the download "fails" when the artifact is simply missing on the
remote repository.
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. |
MISSING_ARTIFACT | final public static String MISSING_ARTIFACT(Code) | | download details used when the download "fails" when the artifact is simply missing on the
remote repository.
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.
|
ArtifactDownloadReport | public ArtifactDownloadReport(Artifact artifact)(Code) | | |
getDownloadTimeMillis | public long getDownloadTimeMillis()(Code) | | |
getLocalFile | public File getLocalFile()(Code) | | Returns the File where the artifact is available on the local filesystem,
or null if and only if the artifact caching failed.
the file where the artifact is now available on the local filesystem. |
getSize | public long getSize()(Code) | | |
getType | public String getType()(Code) | | the type of the downloaded artifact |
isDownloaded | public boolean isDownloaded()(Code) | | |
setDownloadDetails | public void setDownloadDetails(String message)(Code) | | |
setDownloadTimeMillis | public void setDownloadTimeMillis(long l)(Code) | | |
setLocalFile | public void setLocalFile(File localFile)(Code) | | |
setSize | public void setSize(long size)(Code) | | |
|
|
|