@groovy.transform.CompileStatic class GitRepoArchiveDownloader extends Object
Downloads an archive from a Git repository.
| Modifiers | Name | Description |
|---|---|---|
class |
GitRepoArchiveDownloader.1 |
|
class |
GitRepoArchiveDownloader.2 |
| Constructor and description |
|---|
GitRepoArchiveDownloader
(CloudGitDescriptor descriptor, Project project)Download archive from Git Cloud provider. |
GitRepoArchiveDownloader
(CloudGitDescriptor descriptor, ConfigCacheSafeOperations gtc)Download archive from Git Cloud provider. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
File |
getArchiveRoot()Returns the location which is the top or home folder for a distribution. |
|
Provider<File> |
getArchiveRootProvider()Returns the location which is the top or home folder for a distribution. |
|
void |
setDownloadRoot(File downloadRootDir)Sets a download root directory for the distribution. |
Download archive from Git Cloud provider.
Injectable constructor.
descriptor - Cloud Git provider metadataProject - Associated projectDownload archive from Git Cloud provider.
descriptor - Cloud Git provider metadataprojectOperations - Project operations.Returns the location which is the top or home folder for a distribution. This value is affected by setDownloadRoot(java.io.File) and the parameters passed in during construction time. @deprecated
Returns the location which is the top or home folder for a distribution. This value is affected by setDownloadRoot(java.io.File) and the parameters passed in during construction time.
Sets a download root directory for the distribution. If not supplied the default is to use the Gradle User Home. This method is provided for convenience and is mostly only used for testing purposes. The folder will be created at download time if it does not exist.
downloadRootDir - Any writeable directory on the filesystem.