public interface DependenciesDownloader
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Dependency> |
download(java.util.Set<org.jfrog.build.api.dependency.DownloadableArtifact> downloadableArtifacts) |
ArtifactoryManager |
getArtifactoryManager() |
java.lang.String |
getTargetDir(java.lang.String targetDir,
java.lang.String relativeDir)
Returns the full target dir of where the artifact is saved
Usually that can be a full absolute path under the file system or the full relative
path to the user workspace.
|
boolean |
isFileExistsLocally(java.lang.String filePath,
java.lang.String md5,
java.lang.String sha1)
Checks if the file path exists locally with the same MD5 and SHA-1 checksums.
|
void |
removeUnusedArtifactsFromLocal(java.util.Set<java.lang.String> allResolvesFiles,
java.util.Set<java.lang.String> forDeletionFiles)
Receives a set of the resolved files (Those who got downloaded from Artifactory and those who were already existed
locally with the same checksums) And a set of resolved files from patterns with mark for deletion.
|
java.util.Map<java.lang.String,java.lang.String> |
saveDownloadedFile(java.io.InputStream is,
java.lang.String filePath)
Parse the given input stream, save it to an actual file to the given path and return
the calculated checksums for the saved file.
|
void |
setFlatDownload(boolean flat)
Set the flat download flag
|
ArtifactoryManager getArtifactoryManager()
java.util.List<Dependency> download(java.util.Set<org.jfrog.build.api.dependency.DownloadableArtifact> downloadableArtifacts) throws java.io.IOException
java.io.IOExceptionjava.lang.String getTargetDir(java.lang.String targetDir,
java.lang.String relativeDir)
throws java.io.IOException
java.io.IOExceptionjava.util.Map<java.lang.String,java.lang.String> saveDownloadedFile(java.io.InputStream is,
java.lang.String filePath)
throws java.io.IOException
java.io.IOExceptionboolean isFileExistsLocally(java.lang.String filePath,
java.lang.String md5,
java.lang.String sha1)
throws java.io.IOException
filePath - The local file path to checkmd5 - The MD5 checksum to compare withsha1 - The SHA-1 checksum to compare withjava.io.IOExceptionvoid removeUnusedArtifactsFromLocal(java.util.Set<java.lang.String> allResolvesFiles,
java.util.Set<java.lang.String> forDeletionFiles)
throws java.io.IOException
allResolvesFiles - A set of all resolved files (to search in)forDeletionFiles - A set of resolved files from patterns with mark for deletion.java.io.IOExceptionvoid setFlatDownload(boolean flat)
flat - , flat download flag nva value