Package com.atlassian.bamboo.plugins.git
Class GitCacheDirectory
- java.lang.Object
-
- com.atlassian.bamboo.plugins.git.GitCacheDirectory
-
public class GitCacheDirectory extends Object
Class used to handle git cache directory operations.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @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 Detail
-
getCacheDirectoryRoot
@NotNull public static @NotNull File getCacheDirectoryRoot(@NotNull @NotNull File workingDirectory)
- 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
public static io.atlassian.util.concurrent.ManagedLock getCacheLock(@NotNull @NotNull File cache)
-
-