Downloads an archive of a Git repository.
Constructor and description |
---|
GitRepoArchiveDownloader
(CloudGitDescriptor descriptor, ProjectOperations projectOperations) Download archive from Git Cloud provider. |
GitRepoArchiveDownloader
(CloudGitDescriptor descriptor, Project project) |
Type Params | Return Type | Name and description |
---|---|---|
|
File |
getArchiveRoot() 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.
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.
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.