org.jfrog.build.extractor.clientConfiguration.util
Class DependenciesDownloaderHelper

java.lang.Object
  extended by org.jfrog.build.extractor.clientConfiguration.util.DependenciesDownloaderHelper

public class DependenciesDownloaderHelper
extends java.lang.Object

Helper class for downloading dependencies


Constructor Summary
DependenciesDownloaderHelper(DependenciesDownloader downloader, org.jfrog.build.api.util.Log log)
           
 
Method Summary
 java.util.List<org.jfrog.build.api.Dependency> downloadDependencies(java.util.Set<org.jfrog.build.api.dependency.DownloadableArtifact> downloadableArtifacts)
           
 java.util.List<org.jfrog.build.api.Dependency> downloadDependencies(java.lang.String serverUrl, Spec downloadSpec)
          Download dependencies by the provided spec from the given artifactory server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependenciesDownloaderHelper

public DependenciesDownloaderHelper(DependenciesDownloader downloader,
                                    org.jfrog.build.api.util.Log log)
Method Detail

downloadDependencies

public java.util.List<org.jfrog.build.api.Dependency> downloadDependencies(java.lang.String serverUrl,
                                                                           Spec downloadSpec)
                                                                    throws java.io.IOException
Download dependencies by the provided spec from the given artifactory server. returns list of downloaded artifacts

Parameters:
serverUrl - the server url
downloadSpec - the download spec
Returns:
list of downloaded artifacts
Throws:
java.io.IOException - in case of IO error

downloadDependencies

public java.util.List<org.jfrog.build.api.Dependency> downloadDependencies(java.util.Set<org.jfrog.build.api.dependency.DownloadableArtifact> downloadableArtifacts)
                                                                    throws java.io.IOException
Throws:
java.io.IOException