public abstract class VcsRepositorySupport extends java.lang.Object implements VcsRepository
VcsRepository.ProgressMonitor, VcsRepository.Utils| Modifier | Constructor and Description |
|---|---|
protected |
VcsRepositorySupport(VcsReference reference) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract VcsFullReference |
downloadToInternal(java.nio.file.Path targetDirectory,
VcsRepository.ProgressMonitor progressMonitor) |
protected void |
emptyDirectoryIfExists(java.nio.file.Path directory) |
VcsFullReference |
forceUpdate(java.nio.file.Path baseDirectory) |
VcsFullReference |
forceUpdate(java.nio.file.Path baseDirectory,
VcsRepository.ProgressMonitor progressMonitor) |
VcsReference |
getReference() |
protected java.nio.file.Path |
infoFileFor(java.nio.file.Path targetDirectory) |
protected boolean |
isUpdateRequired(java.nio.file.Path targetDirectory) |
protected boolean |
isUpdateRequired(VcsRepositoryInfo info) |
protected java.nio.file.Path |
resolveTargetDirectoryFor(java.nio.file.Path baseDirectory) |
protected void |
saveInfoFile(java.nio.file.Path targetDirectory,
VcsFullReference fullReference) |
protected void |
saveInfoFile(java.nio.file.Path targetDirectory,
VcsRepositoryInfo info) |
protected VcsRepositoryInfo |
tryReadInfoFor(java.nio.file.Path targetDirectory) |
VcsFullReference |
updateIfRequired(java.nio.file.Path baseDirectory) |
VcsFullReference |
updateIfRequired(java.nio.file.Path baseDirectory,
VcsRepository.ProgressMonitor progressMonitor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWorkingprotected VcsRepositorySupport(@Nonnull
VcsReference reference)
@Nonnull public VcsReference getReference()
getReference in interface VcsRepository@Nullable public VcsFullReference updateIfRequired(@Nonnull java.nio.file.Path baseDirectory) throws VcsException
updateIfRequired in interface VcsRepositoryVcsException@Nullable public VcsFullReference updateIfRequired(@Nonnull java.nio.file.Path baseDirectory, @Nullable VcsRepository.ProgressMonitor progressMonitor) throws VcsException
updateIfRequired in interface VcsRepositoryVcsException@Nonnull public VcsFullReference forceUpdate(@Nonnull java.nio.file.Path baseDirectory) throws VcsException
forceUpdate in interface VcsRepositoryVcsException@Nonnull public VcsFullReference forceUpdate(@Nonnull java.nio.file.Path baseDirectory, @Nullable VcsRepository.ProgressMonitor progressMonitor) throws VcsException
forceUpdate in interface VcsRepositoryVcsException@Nonnull protected abstract VcsFullReference downloadToInternal(@Nonnull java.nio.file.Path targetDirectory, @Nullable VcsRepository.ProgressMonitor progressMonitor) throws VcsException
VcsException@Nonnull
protected java.nio.file.Path resolveTargetDirectoryFor(@Nonnull
java.nio.file.Path baseDirectory)
throws VcsException
VcsExceptionprotected void emptyDirectoryIfExists(@Nonnull
java.nio.file.Path directory)
throws VcsException
VcsException@Nonnull
protected java.nio.file.Path infoFileFor(@Nonnull
java.nio.file.Path targetDirectory)
throws VcsException
VcsException@Nullable protected VcsRepositoryInfo tryReadInfoFor(@Nonnull java.nio.file.Path targetDirectory) throws VcsException
VcsExceptionprotected boolean isUpdateRequired(@Nonnull
java.nio.file.Path targetDirectory)
throws VcsException
VcsExceptionprotected boolean isUpdateRequired(@Nullable
VcsRepositoryInfo info)
throws VcsException
VcsExceptionprotected void saveInfoFile(@Nonnull
java.nio.file.Path targetDirectory,
@Nonnull
VcsRepositoryInfo info)
throws VcsException
VcsExceptionprotected void saveInfoFile(@Nonnull
java.nio.file.Path targetDirectory,
@Nonnull
VcsFullReference fullReference)
throws VcsException
VcsException