Class MavenArtifactFetcher
- java.lang.Object
-
- org.robolectric.internal.dependency.MavenArtifactFetcher
-
public class MavenArtifactFetcher extends java.lang.ObjectClass responsible for fetching artifacts from Maven. This uses a thread pool of size two in order to parallelize downloads. It uses the Sun JSSE provider for downloading due to its seamless integration with HTTPUrlConnection.
-
-
Constructor Summary
Constructors Constructor Description MavenArtifactFetcher(java.lang.String repositoryUrl, java.lang.String repositoryUserName, java.lang.String repositoryPassword, java.io.File localRepositoryDir, java.util.concurrent.ExecutorService executorService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.google.common.util.concurrent.ListenableFuture<java.lang.Void>createFetchToFileTask(java.net.URL remoteUrl, java.io.File tempFile)voidfetchArtifact(MavenJarArtifact artifact)
-
-
-
Method Detail
-
fetchArtifact
public void fetchArtifact(MavenJarArtifact artifact)
-
createFetchToFileTask
protected com.google.common.util.concurrent.ListenableFuture<java.lang.Void> createFetchToFileTask(java.net.URL remoteUrl, java.io.File tempFile)
-
-