Package com.atlassian.bamboo.plugins.git
Class GitCacheDirectory
java.lang.Object
com.atlassian.bamboo.plugins.git.GitCacheDirectory
Class used to handle git cache directory operations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull File
getCacheDirectory
(@NotNull File workingDirectory, @NotNull GitRepositoryAccessData repositoryData) static @NotNull File
getCacheDirectoryRoot
(@NotNull File workingDirectory) static io.atlassian.util.concurrent.ManagedLock
getCacheLock
(@NotNull File cache) static @NotNull Path
getCachePath
(@NotNull File workingDirectory, @NotNull GitRepositoryAccessData repositoryData)
-
Method Details
-
getCacheDirectoryRoot
- Parameters:
workingDirectory
-- Returns:
- the root for all git cache directories.
-
getCacheDirectory
@NotNull public static @NotNull File getCacheDirectory(@NotNull @NotNull File workingDirectory, @NotNull @NotNull GitRepositoryAccessData repositoryData) -
getCachePath
@NotNull public static @NotNull Path getCachePath(@NotNull @NotNull File workingDirectory, @NotNull @NotNull GitRepositoryAccessData repositoryData) -
getCacheLock
-