public abstract class AbstractVcsDependencyManager<VERSION> extends java.lang.Object implements DependencyResolver, DependencyInstaller
CURRENT_VERSION_INDICATOR_FILE| Constructor and Description |
|---|
AbstractVcsDependencyManager(GlobalCacheManager cacheManager) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract ResolvedDependency |
createResolvedDependency(NotationDependency dependency,
java.io.File repoRoot,
VERSION version,
ResolveContext context) |
protected abstract VERSION |
determineVersion(java.io.File repository,
NotationDependency dependency) |
protected abstract void |
doReset(ResolvedDependency dependency,
java.nio.file.Path globalCachePath) |
protected abstract java.lang.String |
getCurrentRepositoryRemoteUrl(java.io.File globalCacheRepoRoot) |
protected abstract void |
initRepository(java.lang.String name,
java.util.List<java.lang.String> urls,
java.io.File repoRoot) |
void |
install(ResolvedDependency dependency,
java.io.File targetDirectory)
Copy all necessary files of this
dependency to the targetDirectory. |
protected abstract void |
resetToSpecificVersion(java.io.File repository,
VERSION version) |
ResolvedDependency |
resolve(ResolveContext context,
NotationDependency dependency)
Resolves a dependency.
|
protected abstract void |
updateRepository(NotationDependency dependency,
java.io.File repoRoot) |
public AbstractVcsDependencyManager(GlobalCacheManager cacheManager)
public ResolvedDependency resolve(ResolveContext context, NotationDependency dependency)
DependencyResolverresolve in interface DependencyResolvercontext - the configuration this dependency in and current exclusion specsdependency - dependency to be resolvedpublic void install(ResolvedDependency dependency, java.io.File targetDirectory)
DependencyInstallerdependency to the targetDirectory.install in interface DependencyInstallerdependency - the dependencytargetDirectory - the target directoryprotected abstract void doReset(ResolvedDependency dependency, java.nio.file.Path globalCachePath)
protected abstract ResolvedDependency createResolvedDependency(NotationDependency dependency, java.io.File repoRoot, VERSION version, ResolveContext context)
protected abstract void resetToSpecificVersion(java.io.File repository,
VERSION version)
protected abstract VERSION determineVersion(java.io.File repository, NotationDependency dependency)
protected abstract void updateRepository(NotationDependency dependency, java.io.File repoRoot)
protected abstract void initRepository(java.lang.String name,
java.util.List<java.lang.String> urls,
java.io.File repoRoot)
protected abstract java.lang.String getCurrentRepositoryRemoteUrl(java.io.File globalCacheRepoRoot)